SKA Epoch to TAI Conversion

Shared methods handling timestamp conversion to tai.

get_current_tai_timestamp_from_unix_time()[source]

Get the current time as a TAI timestamp.

Return type:

float

get_tai_timestamp_from_datetime(datetime_obj)[source]

Convert a datetime object into a TAI timestamp.

Return type:

float

get_tai_timestamp_from_unix_s(unix_s)[source]

Calculate atomic time in seconds from unix time in seconds.

Parameters:

unix_s (float) – Unix time in seconds

Return type:

float

Returns:

atomic time (tai) in seconds