Lines Matching refs:DateTime
26 use {Date, DateTime};
82 pub fn and_time(self, time: NaiveTime) -> LocalResult<DateTime<Tz>> { in and_time()
96 pub fn and_hms_opt(self, hour: u32, min: u32, sec: u32) -> LocalResult<DateTime<Tz>> { in and_hms_opt()
117 ) -> LocalResult<DateTime<Tz>> { in and_hms_milli_opt()
138 ) -> LocalResult<DateTime<Tz>> { in and_hms_micro_opt()
159 ) -> LocalResult<DateTime<Tz>> { in and_hms_nano_opt()
324 fn timestamp(&self, secs: i64, nsecs: u32) -> DateTime<Self> { in timestamp()
334 fn timestamp_opt(&self, secs: i64, nsecs: u32) -> LocalResult<DateTime<Self>> { in timestamp_opt()
354 fn timestamp_millis(&self, millis: i64) -> DateTime<Self> { in timestamp_millis()
375 fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>> { in timestamp_millis_opt()
397 fn timestamp_nanos(&self, nanos: i64) -> DateTime<Self> { in timestamp_nanos()
416 fn datetime_from_str(&self, s: &str, fmt: &str) -> ParseResult<DateTime<Self>> { in datetime_from_str()
440 fn from_local_datetime(&self, local: &NaiveDateTime) -> LocalResult<DateTime<Self>> { in from_local_datetime()
442 .map(|offset| DateTime::from_utc(*local - offset.fix(), offset)) in from_local_datetime()
459 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self> { in from_utc_datetime()
460 DateTime::from_utc(*utc, self.offset_from_utc_datetime(utc)) in from_utc_datetime()