pub struct Civil {
pub year: i32,
pub month: u32,
pub day: u32,
pub hour: u32,
pub minute: u32,
pub second: u32,
pub nanosecond: u32,
pub yday: u32,
pub wday: u32,
pub unix_seconds: i64,
}Expand description
A calendar breakdown, in the format’s own timescale.
Deliberately free of C types, so the engine stays platform-neutral; the
FFI layer converts this to struct tm and struct timespec.
Fields§
§year: i32Full year, e.g. 2026.
month: u32Month, 1 to 12.
day: u32Day of the month, 1 to 31.
hour: u32Hour, 0 to 23.
minute: u32Minute, 0 to 59.
second: u32Second, 0 to 60 to allow for a leap second in the source text.
nanosecond: u32Nanoseconds within the second.
yday: u32Day of the year, 1 to 366.
wday: u32Day of the week, 0 being Sunday.
unix_seconds: i64Seconds from the Unix epoch, ignoring leap seconds.
Trait Implementations§
impl Copy for Civil
impl StructuralPartialEq for Civil
Auto Trait Implementations§
impl Freeze for Civil
impl RefUnwindSafe for Civil
impl Send for Civil
impl Sync for Civil
impl Unpin for Civil
impl UnsafeUnpin for Civil
impl UnwindSafe for Civil
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more