#[repr(i32)]pub enum TimeFormat {
Show 23 variants
Iso = 0,
Yday = 1,
Byear = 2,
Jyear = 3,
DecimalYear = 4,
Jd = 5,
Mjd = 6,
Gps = 7,
Unix = 8,
Utime = 9,
TaiSeconds = 10,
Cxcsec = 11,
Galexsec = 12,
UnixTai = 13,
Reserved1 = 14,
ByearStr = 15,
Datetime = 16,
Fits = 17,
Isot = 18,
JyearStr = 19,
PlotDate = 20,
Ymdhms = 21,
Datetime64 = 22,
}Expand description
How a time is written, mirroring asdf_time_format_t.
The discriminants are part of the C ABI.
Variants§
Iso = 0
ISO 8601 date and time, the default.
Yday = 1
Year, day-of-year and time.
Byear = 2
Besselian epoch year.
Jyear = 3
Julian epoch year.
DecimalYear = 4
Decimal year.
Jd = 5
Julian Date.
Mjd = 6
Modified Julian Date.
Gps = 7
Seconds from the GPS epoch.
Unix = 8
Seconds from the Unix epoch, ignoring leap seconds.
Utime = 9
UT seconds from 1979-01-01.
TaiSeconds = 10
SI seconds from 1958-01-01, including leap seconds.
Cxcsec = 11
Chandra X-ray Center seconds from 1998-01-01 TT.
Galexsec = 12
GALEX seconds from 1980-01-06.
UnixTai = 13
SI seconds from 1970-01-01 TAI.
Reserved1 = 14
Reserved; not a usable format.
ByearStr = 15
Besselian epoch in string form.
Datetime = 16
A Python datetime.datetime.
Fits = 17
FITS date-time string.
Isot = 18
ISO 8601 with a literal T separator.
JyearStr = 19
Julian epoch in string form.
PlotDate = 20
matplotlib ordinal days.
Ymdhms = 21
Year/month/day/hour/minute/second fields.
Datetime64 = 22
NumPy datetime64.
Implementations§
Source§impl TimeFormat
impl TimeFormat
Sourcepub fn name(self) -> Option<&'static str>
pub fn name(self) -> Option<&'static str>
The name written to a file, or None for the reserved slot.
Trait Implementations§
Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§fn clone(&self) -> TimeFormat
fn clone(&self) -> TimeFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more