Home
last modified time | relevance | path

Searched refs:ymdhms (Results 1 – 9 of 9) sorted by relevance

/external/rust/crates/chrono/src/naive/
Ddatetime.rs2257 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_from_timestamp() localVariable
2258 assert_eq!(from_timestamp(-1), Some(ymdhms(1969, 12, 31, 23, 59, 59))); in test_datetime_from_timestamp()
2259 assert_eq!(from_timestamp(0), Some(ymdhms(1970, 1, 1, 0, 0, 0))); in test_datetime_from_timestamp()
2260 assert_eq!(from_timestamp(1), Some(ymdhms(1970, 1, 1, 0, 0, 1))); in test_datetime_from_timestamp()
2261 assert_eq!(from_timestamp(1_000_000_000), Some(ymdhms(2001, 9, 9, 1, 46, 40))); in test_datetime_from_timestamp()
2262 assert_eq!(from_timestamp(0x7fffffff), Some(ymdhms(2038, 1, 19, 3, 14, 7))); in test_datetime_from_timestamp()
2317 let ymdhms = |y, m, d, h, n, s| NaiveDate::from_ymd(y, m, d).and_hms(h, n, s); in test_datetime_sub() localVariable
2320 since(ymdhms(2014, 5, 6, 7, 8, 9), ymdhms(2014, 5, 6, 7, 8, 9)), in test_datetime_sub()
2324 since(ymdhms(2014, 5, 6, 7, 8, 10), ymdhms(2014, 5, 6, 7, 8, 9)), in test_datetime_sub()
2328 since(ymdhms(2014, 5, 6, 7, 8, 9), ymdhms(2014, 5, 6, 7, 8, 10)), in test_datetime_sub()
[all …]
/external/rust/crates/chrono/src/format/
Dparsed.rs1051 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()
[all …]
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/
Dtime_test.cc1172 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1180 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1183 EXPECT_EQ("infinite-past", absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1188 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1190 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1192 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1200 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/webrtc/third_party/abseil-cpp/absl/time/
Dtime_test.cc1169 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1177 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1181 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1186 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1188 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1190 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1192 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/libtextclassifier/abseil-cpp/absl/time/
Dtime_test.cc1172 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1180 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1183 EXPECT_EQ("infinite-past", absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1188 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1190 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1192 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1200 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/abseil-cpp/absl/time/
Dtime_test.cc1169 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1177 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1181 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1186 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1188 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1190 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1192 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/openscreen/third_party/abseil/src/absl/time/
Dtime_test.cc1176 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1184 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1187 EXPECT_EQ("infinite-past", absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1192 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1200 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1202 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1204 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/angle/third_party/abseil-cpp/absl/time/
Dtime_test.cc1176 const std::string ymdhms = "%Y-%m-%d %H:%M:%S"; in TEST() local
1184 absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1187 EXPECT_EQ("infinite-past", absl::FormatTime(ymdhms, t, utc)); // no overflow in TEST()
1192 EXPECT_EQ("2015-01-01 00:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1194 EXPECT_EQ("2015-01-01 01:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1196 EXPECT_EQ("2015-01-02 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1198 EXPECT_EQ("2015-02-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1200 EXPECT_EQ("2016-01-01 00:00:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1202 EXPECT_EQ("2016-02-03 13:01:00", absl::FormatTime(ymdhms, t, utc)); in TEST()
1204 EXPECT_EQ("2014-12-31 23:59:59", absl::FormatTime(ymdhms, t, utc)); in TEST()
[all …]
/external/rust/crates/chrono/src/
Ddatetime.rs2405 let ymdhms = |y, m, d, h, n, s, off| FixedOffset::east(off).ymd(y, m, d).and_hms(h, n, s); in test_datetime_parse_from_str() localVariable
2408 Ok(ymdhms(2014, 5, 7, 12, 34, 56, 570 * 60)) in test_datetime_parse_from_str()