get_utc_tai_offset¶
- pyhelpers.ops.get_utc_tai_offset(verbose=False, raise_error=False, url=None)[source]¶
Retrieves the difference between UTC (Coordinated Universal Time) and TAI (International Atomic Time).
This difference increases as leap seconds are added to UTC.
- Parameters:
verbose (bool | int) – Whether to print additional information to the console; defaults to
True
.raise_error (bool) – Whether to raise the provided exception; if
raise_error=False
(default), the error will be suppressed.url (str | None) – URL to the IERS (International Earth Rotation and Reference Systems Service)’s Bulletin C, which announces leap seconds; defaults to
None
.
- Returns:
The difference between UTC and TAI, i.e. UTC - TAI.
- Return type:
int | float | None
Examples:
>>> from pyhelpers.ops import get_utc_tai_offset >>> get_utc_tai_offset() -37