Struct carbon::DateTime [-] [+] [src]

pub struct DateTime {
    // some fields omitted
}

Methods

impl DateTime

fn now() -> DateTime

fn create_from_tm(tm: Tm) -> DateTime

fn set_test_now(test_now: Option<DateTime>)

fn get_test_now() -> Option<DateTime>

fn start_of(&self) -> Start

fn end_of(&self) -> End

fn is_leap_year(&self) -> bool

Trait Implementations

Derived Implementations

impl Clone for DateTime

fn clone(&self) -> DateTime

fn clone_from(&mut self, source: &Self)

impl Debug for DateTime

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Eq for DateTime

impl PartialEq for DateTime

fn eq(&self, __arg_0: &DateTime) -> bool

fn ne(&self, __arg_0: &DateTime) -> bool