pub trait DateTimeNow {
    type Timezone: TimeZone;

Show 17 methods fn beginning_of_minute(&self) -> DateTime<Self::Timezone>; fn beginning_of_hour(&self) -> DateTime<Self::Timezone>; fn beginning_of_day(&self) -> DateTime<Self::Timezone>; fn beginning_of_week(&self) -> DateTime<Self::Timezone>; fn beginning_of_week_with_start_day(
        &self,
        week_start_day: &WeekStartDay
    ) -> DateTime<Self::Timezone>; fn beginning_of_month(&self) -> DateTime<Self::Timezone>; fn beginning_of_quarter(&self) -> DateTime<Self::Timezone>; fn beginning_of_year(&self) -> DateTime<Self::Timezone>; fn end_of_minute(&self) -> DateTime<Self::Timezone>; fn end_of_hour(&self) -> DateTime<Self::Timezone>; fn end_of_day(&self) -> DateTime<Self::Timezone>; fn end_of_week(&self) -> DateTime<Self::Timezone>; fn end_of_week_with_start_day(
        &self,
        week_start_day: &WeekStartDay
    ) -> DateTime<Self::Timezone>; fn end_of_month(&self) -> DateTime<Self::Timezone>; fn end_of_quarter(&self) -> DateTime<Self::Timezone>; fn end_of_year(&self) -> DateTime<Self::Timezone>; fn week_of_year(&self) -> u32;
}

Required Associated Types

Required Methods

get beginning of week. the default week start day is Monday.

get beginning of week given specific week start day.

Implementations on Foreign Types

Implementors