• Home
  • Raw
  • Download

Lines Matching refs:ymdhms

1051         let ymdhms = |y, m, d, h, n, s| Ok(NaiveDate::from_ymd(y, m, d).and_hms(h, n, s));  in test_parsed_to_naive_datetime_with_offset()  localVariable
1060 ymdhms(2015, 1, 30, 14, 38, 0) in test_parsed_to_naive_datetime_with_offset()
1065 ymdhms(1997, 1, 30, 14, 38, 5) in test_parsed_to_naive_datetime_with_offset()
1072 assert_eq!(parse!(timestamp: 0), ymdhms(1970, 1, 1, 0, 0, 0)); in test_parsed_to_naive_datetime_with_offset()
1073 assert_eq!(parse!(timestamp: 1, nanosecond: 0), ymdhms(1970, 1, 1, 0, 0, 1)); in test_parsed_to_naive_datetime_with_offset()
1075 assert_eq!(parse!(timestamp: 1_420_000_000), ymdhms(2014, 12, 31, 4, 26, 40)); in test_parsed_to_naive_datetime_with_offset()
1076 assert_eq!(parse!(timestamp: -0x1_0000_0000), ymdhms(1833, 11, 24, 17, 31, 44)); in test_parsed_to_naive_datetime_with_offset()
1114 ymdhms(MIN_DATE.year(), 1, 1, 0, 0, 0) in test_parsed_to_naive_datetime_with_offset()
1118 ymdhms(0, 1, 1, 0, 0, 0) in test_parsed_to_naive_datetime_with_offset()
1122 ymdhms(MAX_DATE.year(), 12, 31, 23, 59, 59) in test_parsed_to_naive_datetime_with_offset()
1127 assert_eq!(parse!(second: 59, timestamp: 1_341_100_799), ymdhms(2012, 6, 30, 23, 59, 59)); in test_parsed_to_naive_datetime_with_offset()
1137 assert_eq!(parse!(second: 0, timestamp: 1_341_100_800), ymdhms(2012, 7, 1, 0, 0, 0)); in test_parsed_to_naive_datetime_with_offset()
1151 ymdhms(2012, 6, 30, 23, 59, 59) in test_parsed_to_naive_datetime_with_offset()
1171 ymdhms(2012, 7, 1, 0, 0, 0) in test_parsed_to_naive_datetime_with_offset()