[−][src]Struct billecta::DateTime
Methods
impl DateTime
[src]
pub fn ymd_hms(
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32
) -> Self
[src]
year: i32,
month: u32,
day: u32,
hour: u32,
minute: u32,
second: u32
) -> Self
pub fn ymd(year: i32, month: u32, day: u32) -> Self
[src]
pub fn and_hms(&self, hour: u32, minute: u32, second: u32) -> Self
[src]
pub fn year(&self) -> i32
[src]
pub fn month(&self) -> u32
[src]
pub fn date(&self) -> NaiveDate
[src]
pub fn utc(&self) -> DateTime<Utc>
[src]
pub fn prev_month_start(&self) -> Self
[src]
Returns the start of the day in the month before.
pub fn now() -> Self
[src]
pub fn end_of_month(&self) -> DateTime
[src]
pub fn beginning_of_month(&self) -> DateTime
[src]
Trait Implementations
impl Add<Duration> for DateTime
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Duration) -> Self::Output
[src]
impl Add<Duration> for DateTime
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Duration) -> Self::Output
[src]
impl Clone for DateTime
[src]
impl Copy for DateTime
[src]
impl Debug for DateTime
[src]
impl<'de> Deserialize<'de> for DateTime
[src]
fn deserialize<D>(deserializer: D) -> Result<DateTime, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for DateTime
[src]
impl Eq for DateTime
[src]
impl From<NaiveDateTime> for DateTime
[src]
fn from(dt: NaiveDateTime) -> Self
[src]
impl Ord for DateTime
[src]
fn cmp(&self, other: &DateTime) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<DateTime> for DateTime
[src]
impl PartialOrd<DateTime> for DateTime
[src]
fn partial_cmp(&self, other: &DateTime) -> Option<Ordering>
[src]
fn lt(&self, other: &DateTime) -> bool
[src]
fn le(&self, other: &DateTime) -> bool
[src]
fn gt(&self, other: &DateTime) -> bool
[src]
fn ge(&self, other: &DateTime) -> bool
[src]
impl Serialize for DateTime
[src]
impl StructuralEq for DateTime
[src]
impl StructuralPartialEq for DateTime
[src]
impl Sub<Duration> for DateTime
[src]
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Duration) -> Self::Output
[src]
impl Sub<Duration> for DateTime
[src]
Auto Trait Implementations
impl RefUnwindSafe for DateTime
impl Send for DateTime
impl Sync for DateTime
impl Unpin for DateTime
impl UnwindSafe for DateTime
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,