Skip to content
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

Consdier mirroring leap seconds file with GHA #2

Open
trey-stafford opened this issue Aug 12, 2024 · 2 comments
Open

Consdier mirroring leap seconds file with GHA #2

trey-stafford opened this issue Aug 12, 2024 · 2 comments

Comments

@trey-stafford
Copy link
Contributor

Consider mirroring the leap seconds data file on GH, using scheduled GHA to keep it updated at some interval.

This may require some additional code to check the validity of the file at runtime (i.e.., if a user adjusts a GPS time for a datetime after the last valid datetime in the file, raise an error).

@trey-stafford
Copy link
Contributor Author

gps-timemachine already stores a static copy of the leap seconds file that it falls back on if reading from the remote source fails! See: https://github.com/nsidc/gps-timemachine/blob/main/gps_timemachine/static/tai-utc.dat

There does not appear to be any code to check the validity of that file, as described above, but it hasn't changed since we added it back in Dec. 2020.

@trey-stafford
Copy link
Contributor Author

See #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant