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

Physical units, time, reference frames, environment modeling.
https://open-space-collective.github.io/open-space-toolkit-physics/
Apache License 2.0
25 stars 7 forks source link

feat: add an Instant::Parse utility function and the GPS Epoch #250

Closed kyle-cochran closed 6 months ago

kyle-cochran commented 6 months ago

Add a utility function that lets us do:

Instant.parse("2021-12-02 00:00:00.000", Scale.UTC) instead of: Instant.date_time(DateTime.parse("2021-12-02 00:00:00.000", Scale.UTC))

Also adds a shortcut for the GPS epoch, which is Jan 6, 1980 UTC Instant.GPS_epoch()

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 80.70%. Comparing base (0f03443) to head (3ba4f01).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #250 +/- ## ========================================== + Coverage 80.69% 80.70% +0.01% ========================================== Files 97 97 Lines 7594 7599 +5 ========================================== + Hits 6128 6133 +5 Misses 1466 1466 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.