Source code for sunpy.time.timeformats
This module provides time formats specific to solar physics
from astropy.time.formats import TimeFromEpoch, erfa
__all__ = ['TimeUTime', 'TimeTaiSeconds']
UT seconds from 1979-01-01 00:00:00 UTC, ignoring leap seconds.
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 `~astropy.time.TimeUnix`, except that the epoch is
9 years later.
* `anytim routine in SSW <https://hesperia.gsfc.nasa.gov/ssw/gen/idl/utplot/anytim.pro>`_
>>> from astropy.time import Time
>>> t = Time('2000-01-01T13:53:23')
>>> t2 = Time('1979-01-01T00:00:00')
name = 'utime'
unit = 1.0 / erfa.DAYSEC # in days (1 day == 86400 seconds)
epoch_val = '1979-01-01 00:00:00'
epoch_val2 = None
epoch_scale = 'utc' # Scale for epoch_val class attribute
epoch_format = 'iso' # Format for epoch_val class attribute