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
Handling time in string format #90
Comments
I suggest using the numpy iso format i.e. '2000-01-01T00:00:00Z' and library from dateutil.parser import parse
parse('2000-01-01T00:00:00Z')
#out: datetime.datetime(2000, 1, 1, 0, 0, tzinfo=tzutc()) and to convert the datetime object back to the iso format: parse('2000-01-01T00:00:00Z').strftime("%Y-%m-%dT%H:%M:%SZ")
#out: '2000-01-01T00:00:00Z' |
Nice overview! So the internal representation of dateutil is 'normal' |
It seems so. It is mentioned in the documentation that "the dateutil module provides powerful extensions to the standard datetime module". |
Addressed in #137 |
In ewatercycle, the start/end time is given as a string in the ISO format (which uses the Grogerian calendar), and in UTC time. A date string ISO format is represented differently by different libraries:
The text was updated successfully, but these errors were encountered: