Lines Matching refs:Utc
36 pub struct Utc; struct
39 impl Utc { impl
41 pub fn today() -> Date<Utc> { in today()
42 Utc::now().date() in today()
47 pub fn now() -> DateTime<Utc> { in now()
51 DateTime::from_utc(naive, Utc) in now()
56 pub fn now() -> DateTime<Utc> { in now()
58 DateTime::<Utc>::from(now) in now()
62 impl TimeZone for Utc { implementation
63 type Offset = Utc;
65 fn from_offset(_state: &Utc) -> Utc { in from_offset() argument
66 Utc in from_offset()
69 fn offset_from_local_date(&self, _local: &NaiveDate) -> LocalResult<Utc> { in offset_from_local_date() argument
70 LocalResult::Single(Utc) in offset_from_local_date()
72 fn offset_from_local_datetime(&self, _local: &NaiveDateTime) -> LocalResult<Utc> { in offset_from_local_datetime() argument
73 LocalResult::Single(Utc) in offset_from_local_datetime()
76 fn offset_from_utc_date(&self, _utc: &NaiveDate) -> Utc { in offset_from_utc_date() argument
77 Utc in offset_from_utc_date()
79 fn offset_from_utc_datetime(&self, _utc: &NaiveDateTime) -> Utc { in offset_from_utc_datetime() argument
80 Utc in offset_from_utc_datetime()
84 impl Offset for Utc { implementation
90 impl fmt::Debug for Utc { implementation
96 impl fmt::Display for Utc { implementation