Go to the documentation of this file.
4 TAI58_OFFSET = datetime.datetime(1970, 1, 1) - datetime.datetime(1958, 1, 1)
8 return float(seconds) +
float(subseconds) / pow(2,8*subseconds.itemsize)
10 CCSDS_timestamp = np.dtype([
19 tmp = np.frombuffer(data, dtype=CCSDS_timestamp, count=1)
25 dt = datetime.datetime.utcfromtimestamp(tai58 - LEAPSEC) - TAI58_OFFSET
32 basetime = dt.replace(hour=0, minute=0, second=0, microsecond=0)
33 return (dt - basetime).total_seconds()
36 return dt.strftime(
'%Y-%m-%dT%H:%M:%S.%fZ')
def seconds_since(tai58, basetime=None)
def decode_timestamp(seconds, subseconds)
def parse_CCSDS_timestamp(timestr)
def tai58_as_datetime(tai58)