python-astrodynamics / spacetrack

Python client for space-track.org
MIT License
74 stars 15 forks source link

Support new date formats when parse_types=True #43

Closed RazerM closed 3 years ago

RazerM commented 4 years ago

Space-Track are likely transitioning to YYYY-MM-DDThh:mm:ss[.d?d]Z. This format should be parsed here:

https://github.com/python-astrodynamics/spacetrack/blob/a09cb06156312f631da19bf80965f1bc18b2ee36/spacetrack/base.py#L76-L79

It might be easiest to use dateutil.parser.isoparse