NSF-Swift / satellite-overhead

An open-source tool for calculating satellite interference to radio astronomy observations.
https://pypi.org/project/sopp/
GNU Affero General Public License v3.0
0 stars 2 forks source link

Use parsing library dateparse for reading datetime strings #99

Closed 0xeb-bp closed 10 months ago

0xeb-bp commented 11 months ago

This PR adds a dependency python-dateparse to use for parsing datetime strings.

This allows users to provide more flexible datetime strings, for example to resolve #98 if the user does not want to provide microseconds. Additionally, datetime strings will now accept time zones and be automatically converted to UTC. A time zone can be provided as follows: 2023-12-27T5:00:00-07:00

Tests were added to test datetime strings with and without microseconds as well as ensure correct time zone conversion.