tai_from_utc_unix¶
- lsst.ts.utils.tai_from_utc_unix(utc_unix: float) float¶
Return TAI in unix seconds, given UTC in unix seconds.
Warning: smears time evenly on the day before a leap second. See Leap Second Smearing for details.
- Parameters:
- utc_unix
float UTC time in unix seconds.
- utc_unix
- Returns:
- tai_unix
float TAI time in unix seconds.
- tai_unix
- 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).
Notes
This function uses a leap second table that is automatically updated in the background (though updates are very infrequent).