Searched refs:to_rfc2822 (Results 1 – 3 of 3) sorted by relevance
/external/rust/crates/chrono/benches/ |
D | chrono.rs | 42 c.bench_function("bench_datetime_to_rfc2822", |b| b.iter(|| black_box(dt).to_rfc2822())); in bench_datetime_to_rfc2822()
|
/external/rust/crates/chrono/ |
D | README.md | 233 Chrono also provides [`to_rfc2822`](https://docs.rs/chrono/0.4/chrono/struct.DateTime.html#method.t… 257 assert_eq!(dt.to_rfc2822(), "Fri, 28 Nov 2014 12:00:09 +0000"); 343 assert_eq!(dt.to_rfc2822(), "Fri, 14 Jul 2017 02:40:00 +0000");
|
/external/rust/crates/chrono/src/ |
D | datetime.rs | 399 pub fn to_rfc2822(&self) -> String { in to_rfc2822() function 2285 Utc.ymd(2015, 2, 18).and_hms(23, 16, 9).to_rfc2822(), in test_datetime_rfc2822_and_rfc3339() 2293 EDT.ymd(2015, 2, 18).and_hms_milli(23, 16, 9, 150).to_rfc2822(), in test_datetime_rfc2822_and_rfc3339() 2301 EDT.ymd(2015, 2, 18).and_hms_micro(23, 59, 59, 1_234_567).to_rfc2822(), in test_datetime_rfc2822_and_rfc3339()
|