pub struct DecodedTimedate {
pub unix_seconds_utc: i64,
pub centiseconds: u32,
pub tz_offset_minutes: i32,
pub dst: bool,
pub julian_day_number: u32,
}Expand description
Decoded clock representation of a TIMEDATE. Returned by
Timedate::as_clock. The TIMEDATE bytes themselves are preserved
on the parent Timedate in case downstream code needs the raw
identifier-style view.
Fields§
§unix_seconds_utc: i64Unix seconds (UTC) corresponding to the date+time portion.
Centiseconds-precision remainder is in centiseconds.
centiseconds: u320-99 centiseconds (1/100ths of a second) on top of
unix_seconds_utc.
tz_offset_minutes: i32Originating timezone offset from UTC, in minutes. Positive = east of GMT, negative = west. Preserve this for chain-of-custody: “this email was sent from CET” is forensically distinct from “this email was sent at 14:49 UTC”.
dst: boolDST-observed flag from the original TIMEDATE. Notes stores DST status as a flag bit, not as a derived value; preserve it.
julian_day_number: u32Astronomical Julian Day Number (proleptic Julian calendar). JDN 2,440,588 == 1970-01-01.
Implementations§
Source§impl DecodedTimedate
impl DecodedTimedate
Sourcepub fn to_iso_8601(&self) -> String
pub fn to_iso_8601(&self) -> String
ISO-8601 representation in the originating timezone, e.g.
1996-12-10T14:49:04.00-05:00. Centiseconds-precision.
Trait Implementations§
Source§impl Clone for DecodedTimedate
impl Clone for DecodedTimedate
Source§fn clone(&self) -> DecodedTimedate
fn clone(&self) -> DecodedTimedate
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DecodedTimedate
Source§impl Debug for DecodedTimedate
impl Debug for DecodedTimedate
impl Eq for DecodedTimedate
Source§impl PartialEq for DecodedTimedate
impl PartialEq for DecodedTimedate
Source§fn eq(&self, other: &DecodedTimedate) -> bool
fn eq(&self, other: &DecodedTimedate) -> bool
self and other values to be equal, and is used by ==.