Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of "start_interval" and "end_interval" root level keys to cruise.json #29

Open
DocOtak opened this issue Nov 4, 2015 · 0 comments

Comments

@DocOtak
Copy link
Member

DocOtak commented Nov 4, 2015

Future cruises may not have a known start and end date, but often a start and end period are known. This may also provide a solution to issue #13 if the actual dates are stored someplace separate.

The two interval keys would contain strings with ISO 8601 Duration strings in them.

{
  "startDate" : "2015-01-01",
  "start_interval" : "P2M"
}

The above example means that the actual start date of the cruise is sometime in the 2 month period after 2015-01-01. The duration notation is very expressive, see the wikipedia page for more information on it.

The new root level keys would be OPTIONAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant