TimeUTime

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

Bases: astropy.time.TimeFromEpoch

Seconds from 1979-01-01 00:00:00 UTC. Same as Unix time but this starts 9 years later.

This time format is included for historical reasons. Some people in solar physics prefer using this epoch.

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