pub struct Calendar {
pub year: i64,
pub month: u8,
pub day: u8,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub nanos: u32,
}Expand description
Gregorian calendar components of a labelled time, not an elapsed-time proof. The year uses astronomical numbering (zero denotes 1 BCE); callers of other calendar contracts must apply their own specified year-numbering convention.
Fields§
§year: i64Signed astronomical Gregorian year.
month: u8Month, one through twelve.
day: u8Day within the month.
hour: u8Hour, zero through twenty-three.
minute: u8Minute, zero through fifty-nine.
second: u8Labelled second, including sixty for an inserted second.
nanos: u32Fractional nanoseconds retained by this Time value.
Trait Implementations§
impl Copy for Calendar
impl Eq for Calendar
impl StructuralPartialEq for Calendar
Auto Trait Implementations§
impl Freeze for Calendar
impl RefUnwindSafe for Calendar
impl Send for Calendar
impl Sync for Calendar
impl Unpin for Calendar
impl UnsafeUnpin for Calendar
impl UnwindSafe for Calendar
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