Lines Matching refs:ymd

157 let dt = Utc.ymd(2014, 7, 8).and_hms(9, 10, 11); // `2014-07-08T09:10:11Z`
163 let dt = Utc.ymd(2014, 7, 8).and_hms_milli(9, 10, 11, 12); // `2014-07-08T09:10:11.012Z`
164 assert_eq!(dt, Utc.ymd(2014, 7, 8).and_hms_micro(9, 10, 11, 12_000));
165 assert_eq!(dt, Utc.ymd(2014, 7, 8).and_hms_nano(9, 10, 11, 12_000_000));
169 LocalResult::Single(Utc.ymd(2014, 7, 8).and_hms(21, 15, 33)));
175 let local_dt = Local.ymd(2014, 7, 8).and_hms_milli(9, 10, 11, 12);
176 let fixed_dt = FixedOffset::east(9 * 3600).ymd(2014, 7, 8).and_hms_milli(18, 10, 11, 12);
192 let dt = FixedOffset::east(9*3600).ymd(2014, 11, 28).and_hms_nano(21, 45, 59, 324310806);
206 assert_eq!(dt.with_timezone(&Utc), Utc.ymd(2014, 11, 28).and_hms_nano(12, 45, 59, 324310806));
214 let dt1 = Utc.ymd(2014, 11, 14).and_hms(8, 9, 10);
215 let dt2 = Utc.ymd(2014, 11, 14).and_hms(10, 9, 8);
218 assert_eq!(Utc.ymd(1970, 1, 1).and_hms(0, 0, 0) + Duration::seconds(1_000_000_000),
219 Utc.ymd(2001, 9, 9).and_hms(1, 46, 40));
220 assert_eq!(Utc.ymd(1970, 1, 1).and_hms(0, 0, 0) - Duration::seconds(1_000_000_000),
221 Utc.ymd(1938, 4, 24).and_hms(22, 13, 20));
250 let dt = Utc.ymd(2014, 11, 28).and_hms(12, 0, 9);
262 let dt_nano = Utc.ymd(2014, 11, 28).and_hms_nano(12, 0, 9, 1);
296 let dt = Utc.ymd(2014, 11, 28).and_hms(12, 0, 9);
363 assert_eq!(Utc.ymd(2014, 11, 28).weekday(), Weekday::Fri);
365 assert_eq!(Utc.ymd(2014, 11, 28).and_hms_milli(7, 8, 9, 10).format("%H%M%S").to_string(),
411 and consequently `Utc.ymd(2014, 1, 30).with_month(2)` returns `None`.