improve LeapSecondInfo docs a bit more

This commit is contained in:
Jeff Epler 2024-06-05 21:08:41 -05:00
parent 82e164ce85
commit 0ad03844d7

View file

@ -38,8 +38,12 @@ NTP_EPOCH = datetime.datetime(1900, 1, 1, tzinfo=datetime.timezone.utc)
@dataclass(frozen=True)
class LeapSecondInfo:
"""Information about a particular leap second"""
start: datetime.datetime
"""The UTC timestamp just after the insertion of the leap second."""
"""The UTC timestamp just after the insertion of the leap second.
The leap second is actually the 61th second of the previous minute (xx:xx:60)"""
tai_offset: datetime.timedelta
"""The new TAI-UTC offset. Positive numbers indicate that TAI is ahead of UTC"""