open-space-collective / open-space-toolkit-physics

Physical units, time, reference frames, environment modeling.

Home Page:https://open-space-collective.github.io/open-space-toolkit-physics/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feat] allow DateTime to parse strings with '+' delimited tz offsets

kyle-cochran opened this issue · comments

Is your feature request related to a problem? Please describe.

The DateTime class can parse strings, but only two formats.

This works:
2018-01-02 12:34:56.123.456.789

But this doesn't:
2018-01-02 12:34:56.123.456.789+0000

Additionally, it cannot parse isoformat like:
2018-01-02T12:34:56.123456789Z

I don't think we need to make datetimes timezone-aware, but being able to parse the +0000 case would be really convenient by itself.