tai_from_utc_unix

lsst.ts.salobj.tai_from_utc_unix(utc_unix: float) float

Return TAI in unix seconds, given UTC in unix seconds.

Smear UTC time out evenly on the day before a leap second, so the day has exactly 86400 UTC seconds (of modified duration). Thus the difference between TAI and UTC is not an integer on those days. See the notes for tai_from_utc for more information.

Parameters
utc_unixfloat

UTC time in unix seconds.

Returns
tai_unixfloat

TAI time in unix seconds.

Raises
ValueError

If the date is earlier than 1972 (which is before integer leap seconds) or within one day of the expiration date of the leap second table (which is automatically updated).