-
Notifications
You must be signed in to change notification settings - Fork 54
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
Feature Request: string -> ZonedDateTime #6
Comments
I think this is the format you're looking for: ZonedDateTime("2015-08-06T22:25:31+07:00", "yyyy-mm-ddTHH:MM:SSzzzz") These things should be documented though. Perhaps at some point we can get a function like Python's dateutil's parse, which makes a best-guess parsing. |
@iamed2 is correct. The |
Since this works I'll close the issue =) |
I am looking to parse a string into a ZonedDateTime
For example I would like to parse
"2015-08-06T22:25:31+07:00"
into aZonedDateTime(DateTime(2015,08,06,22,25,31), FixedTimeZone("+07:00"))
I think a reasonable method would be to define a new dateformat so that
ZonedDateTime("2015-08-06T22:25:31+07:00", some_dateformat)
would work but I am still working to understand how 'timezones/io.jl' is working.Still, I figured I would put up my request for now since I think it would be useful.
The text was updated successfully, but these errors were encountered: