Home
last modified time | relevance | path

Searched defs:Utc (Results 1 – 2 of 2) sorted by relevance

/external/rust/crates/chrono/src/offset/
Dutc.rs36 pub struct Utc; struct
39 impl Utc { impl
62 impl TimeZone for Utc { implementation
65 fn from_offset(_state: &Utc) -> Utc { in from_offset()
69 fn offset_from_local_date(&self, _local: &NaiveDate) -> LocalResult<Utc> { in offset_from_local_date()
72 fn offset_from_local_datetime(&self, _local: &NaiveDateTime) -> LocalResult<Utc> { in offset_from_local_datetime()
76 fn offset_from_utc_date(&self, _utc: &NaiveDate) -> Utc { in offset_from_utc_date()
79 fn offset_from_utc_datetime(&self, _utc: &NaiveDateTime) -> Utc { in offset_from_utc_datetime()
84 impl Offset for Utc { implementation
90 impl fmt::Debug for Utc { implementation
[all …]
/external/rust/crates/chrono/src/
Ddatetime.rs738 fn from_str(s: &str) -> ParseResult<DateTime<Utc>> { in from_str()
754 fn from(t: SystemTime) -> DateTime<Utc> { in from()
797 fn from(date: js_sys::Date) -> DateTime<Utc> { in from()
804 fn from(date: &js_sys::Date) -> DateTime<Utc> { in from()
868 FUtc: Fn(&str) -> Result<DateTime<Utc>, E>, in test_decodable_json()
917 FUtc: Fn(&str) -> Result<rustc_serialize::TsSeconds<Utc>, E>, in test_decodable_json_timestamps()
1000 fn decode<D: Decoder>(d: &mut D) -> Result<DateTime<Utc>, D::Error> { in decode()
1034 fn decode<D: Decoder>(d: &mut D) -> Result<TsSeconds<Utc>, D::Error> { in decode()
1196 pub fn serialize<S>(dt: &DateTime<Utc>, serializer: S) -> Result<S::Ok, S::Error> in serialize()
1231 pub fn deserialize<'de, D>(d: D) -> Result<DateTime<Utc>, D::Error> in deserialize()
[all …]