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

Update isodatetime #897

Merged
merged 1 commit into from
Feb 25, 2014
Merged

Conversation

benfitzpatrick
Copy link
Contributor

This updates Cylc with the latest isodatetime master
(see metomi/isodatetime#17).

The primary change is the addition of a much nicer dumping
API, which is demonstrated in time_parser.py below.

Another change is the restructuring of data model, parsers,
and tests into different modules - this mostly just means
e.g. using data.TimePoint where you used TimePoint.

@hjoliver, please review (mostly just the time_parser.py
changes - the others have been reviewed by @matthewrmshin).

@@ -393,27 +372,27 @@ def test_third_recurrence_format(self):
def test_fourth_recurrence_format(self):
"""Test the fourth ISO 8601 recurrence format."""
tests = [("PT6H/20000101T0500Z", "R/PT6H/20000101T0500Z"),
("P12D/+P2W", "R/P12D/20010520T1200+0200"),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that all these changed because the timezone is now forced.

@benfitzpatrick
Copy link
Contributor Author

This ties into #887.

@matthewrmshin matthewrmshin added this to the next-release milestone Feb 24, 2014
@hjoliver
Copy link
Member

@benfitzpatrick - the tests pass and I can't see any obvious problems. I figure that's a sufficiently thorough review given that we're not using isodatetime yet in cylc, but are just about to get started with it. I'll merge this now so I can get on with it ...

hjoliver added a commit that referenced this pull request Feb 25, 2014
@hjoliver hjoliver merged commit 733a2be into cylc:master Feb 25, 2014
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

Successfully merging this pull request may close these issues.

3 participants