Commit graph

8 commits

Author SHA1 Message Date
df6619d770 check types in leapseconddata.py 2024-07-07 14:41:41 -05:00
9d9fe1d0ec use venv in make rules
.. to isolate the testing environment from the user's regular
environment
2024-07-07 14:37:03 -05:00
94a58ff95c Move docs to subdirectory 2024-07-07 14:36:27 -05:00
000f1d33c1 Add type annotations 2024-07-06 16:36:16 -05:00
4fb3e9ea7f Add sphinx / rtd documentation 2021-10-20 14:53:02 -05:00
8007b02dcc Add more TAI-wrangling
* leapseconddata.tai is a timezone object.  BEWARE, because of reasons,
   it compares equal to datetime.datetime.utc!

 * tai_offset can take either kind of timestamp

 * to_tai, tai_to_utc: convert to/from the TAI timescale.

 * is_leap_second: return True if the given second is a leap second.
   In the UTC timescale, the ":59" second returns True even though
   "only" the second repetition of :59 is a leap second
2021-10-20 14:44:34 -05:00
632139c299 Add unittest and improve coverage 2021-10-18 19:29:14 -05:00
9b2c42b376 package-ize 2021-10-18 10:22:33 -05:00