utc_from_tai_unix

lsst.ts.salobj.utc_from_tai_unix(tai_unix: float) float

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

The difference is always an integer. Thus this is not the inverse of tai_from_utc_unix, because that function smears UTC time on the day before a leap second.

Parameters
tai_unixfloat

TAI time in unix seconds.

Returns
utc_unixfloat

UTC 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).