pub struct DateTime(pub OffsetDateTime);
Expand description
A Datetime using Stockholm as TZ. Either CET or CEST.
Tuple Fields§
§0: OffsetDateTime
Implementations§
source§impl DateTime
impl DateTime
pub fn ymd_hms( year: i32, month: u8, day: u8, hour: u8, minute: u8, second: u8, ) -> Self
pub fn start_of_month(self) -> Self
pub fn end_of_month(self) -> Self
pub fn next_month_start(self) -> Self
pub fn prev_month_start(self) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for DateTime
impl<'de> Deserialize<'de> for DateTime
source§fn deserialize<D>(deserializer: D) -> Result<DateTime, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DateTime, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<DateTime> for OffsetDateTime
impl From<DateTime> for OffsetDateTime
source§fn from(dt: DateTime) -> OffsetDateTime
fn from(dt: DateTime) -> OffsetDateTime
Converts to this type from the input type.
source§impl From<OffsetDateTime> for DateTime
impl From<OffsetDateTime> for DateTime
source§fn from(dt: OffsetDateTime) -> Self
fn from(dt: OffsetDateTime) -> Self
Converts to this type from the input type.
source§impl From<PrimitiveDateTime> for DateTime
impl From<PrimitiveDateTime> for DateTime
source§fn from(dt: PrimitiveDateTime) -> Self
fn from(dt: PrimitiveDateTime) -> Self
Converts to this type from the input type.
source§impl Ord for DateTime
impl Ord for DateTime
source§impl PartialEq for DateTime
impl PartialEq for DateTime
source§impl PartialOrd for DateTime
impl PartialOrd for DateTime
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for DateTime
impl Eq for DateTime
impl StructuralPartialEq for DateTime
Auto Trait Implementations§
impl Freeze for DateTime
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
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