pub struct LocalDateTime(/* private fields */);Expand description
An instant in the system time zone, for text shown to people.
Implementations§
Source§impl LocalDateTime
impl LocalDateTime
Sourcepub fn to_utc(&self) -> UtcDateTime
pub fn to_utc(&self) -> UtcDateTime
The instant in UTC.
Sourcepub fn offset_seconds(&self) -> i32
pub fn offset_seconds(&self) -> i32
Seconds east of UTC at this instant.
Sourcepub fn date_naive(&self) -> Date
pub fn date_naive(&self) -> Date
The local calendar date.
Sourcepub fn naive_local(&self) -> DateTime
pub fn naive_local(&self) -> DateTime
The local calendar date and wall time.
Sourcepub fn to_rfc3339(&self) -> String
pub fn to_rfc3339(&self) -> String
RFC 3339 in the local offset.
Trait Implementations§
Source§impl Clone for LocalDateTime
impl Clone for LocalDateTime
Source§impl Debug for LocalDateTime
impl Debug for LocalDateTime
Source§impl Display for LocalDateTime
impl Display for LocalDateTime
impl Eq 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