Searched refs:with_timezone (Results 1 – 5 of 5) sorted by relevance
212 pub fn with_timezone<Tz2: TimeZone>(&self, tz: &Tz2) -> DateTime<Tz2> { in with_timezone() method263 src.with_timezone(&FixedOffset::east(0)) in from()274 src.with_timezone(&Local) in from()285 src.with_timezone(&Utc) in from()297 src.with_timezone(&Local) in from()309 src.with_timezone(&Utc) in from()321 src.with_timezone(&FixedOffset::east(0)) in from()739 s.parse::<DateTime<FixedOffset>>().map(|dt| dt.with_timezone(&Utc)) in from_str()748 s.parse::<DateTime<FixedOffset>>().map(|dt| dt.with_timezone(&Local)) in from_str()775 DateTime::<Utc>::from(t).with_timezone(&Local) in from()[all …]
220 pub fn with_timezone<Tz2: TimeZone>(&self, tz: &Tz2) -> Date<Tz2> { in with_timezone() method
88 Ok(ToSqlOutput::from(self.with_timezone(&Utc).to_rfc3339())) in to_sql()112 return Ok(dt.with_timezone(&Utc)); in column_result()125 Ok(utc_dt.with_timezone(&Local)) in column_result()
135 the [`DateTime::with_timezone`](https://docs.rs/chrono/0.4/chrono/struct.DateTime.html#method.with_…206 assert_eq!(dt.with_timezone(&Utc), Utc.ymd(2014, 11, 28).and_hms_nano(12, 45, 59, 324310806));297 let fixed_dt = dt.with_timezone(&FixedOffset::east(9*3600));
633 - `with_timezone`675 - `with_offset` method has been removed. Use `with_timezone` method instead.