eaarl.util.time

Time utility functions

eaarl.util.time.date_epoch_seconds(date)[source]

Returns the seconds-of-the-epoch time for the start of a date

eaarl.util.time.gps_utc_offset(date)[source]

Returns the offset in seconds between UTC and GPS time on a date

Warning

The offset is calculated using a hard-coded list of UTC leap second dates. If leap seconds are added in the future, eaarl.util.time.LEAP_DATES will need to be updated. Leap seconds are announced by the International Earth Rotation and Reference Systems Service (IERS) via Bulletin C. See http://hpiers.obspm.fr/eop-pc for more information. The list of leap second dates in LEAP_DATES is currently accurate through at least June 2018.