TimeUTime#

class sunpy.time.TimeUTime(val1, val2, scale, precision, in_subfmt, out_subfmt, from_jd=False)[source]#

Bases: TimeFromEpoch

UT seconds from 1979-01-01 00:00:00 UTC, ignoring leap seconds.

Notes

This format “ignores” leap seconds by treating each day as spanned by exactly 86400 seconds, which means that this format’s second is not actually uniform in duration. On a day without a leap second, this format’s second is equal to an SI second. On a day with a leap second, this format’s second is larger than an SI second by 1/86400 of an SI second.

This format is very similar to the default output format of the anytim routine in SSW in that there are exactly 86400 seconds assigned for each day. However, anytim treats the seconds as always equal to an SI second, and thus the 86400 seconds span only the first 86400/86401 of the day, and the leap second is skipped over. This results in discrepancies of up to a second on days with a leap second.

This format is equivalent to TimeUnix, except that the epoch is 9 years later.

References

Examples

>>> from astropy.time import Time
>>> t = Time('2000-01-01T13:53:23')
>>> print(t.utime)
662738003.0
>>> t2 = Time('1979-01-01T00:00:00')
>>> print(t2.utime)
0.0

Attributes Summary

epoch_format

epoch_scale

epoch_val

epoch_val2

name

unit

Attributes Documentation

epoch_format = 'iso'#
epoch_scale = 'utc'#
epoch_val = '1979-01-01 00:00:00'#
epoch_val2 = None#
name = 'utime'#
unit = 1.1574074074074073e-05#