pub struct LocalDateTime {
pub date: LocalDate,
pub hour: u8,
pub minute: u8,
pub second: u8,
pub nanosecond: u32,
pub utc_offset_seconds: i32,
}Expand description
A moment as the clock on the user’s wall shows it.
Fields§
§date: LocalDate§hour: u8Zero up to 23.
minute: u8§second: u8Zero up to 59, or 60 in a leap second where the platform reports one.
nanosecond: u32§utc_offset_seconds: i32How far ahead of UTC the user’s time zone is at this moment, daylight saving included. Negative west of Greenwich.
Trait Implementations§
Source§impl Clone for LocalDateTime
impl Clone for LocalDateTime
impl Copy for LocalDateTime
Source§impl Debug for LocalDateTime
impl Debug for LocalDateTime
impl Eq for LocalDateTime
Source§impl Hash for LocalDateTime
impl Hash for LocalDateTime
Source§impl PartialEq for LocalDateTime
impl PartialEq for LocalDateTime
impl StructuralPartialEq for LocalDateTime
Auto Trait Implementations§
impl Forget for LocalDateTime
impl Freeze for LocalDateTime
impl Move for LocalDateTime
impl RefUnwindSafe for LocalDateTime
impl Send for LocalDateTime
impl Sync for LocalDateTime
impl Unpin for LocalDateTime
impl UnsafeUnpin for LocalDateTime
impl UnwindSafe for LocalDateTime
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