Source code for ska_mid_cbf_fhs_common.helpers.time
import time
# Timestamp of the SKA epoch (1999-12-31 23:59:28 UTC) in seconds, relative to the standard Unix epoch (1970-01-01 00:00:00 UTC)
SKA_EPOCH_S = 946_684_768.0
[docs]
def ska_time() -> float:
"""Get the current time relative to the SKA epoch (1999-12-31 23:59:28 UTC), in seconds."""
return time.time() - SKA_EPOCH_S