Searched refs:to_timestamp (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/uuid/src/ |
D | v1.rs | 232 pub fn to_timestamp(&self) -> Option<Timestamp> { in to_timestamp() method 306 let ts = uuid.to_timestamp().unwrap().to_rfc4122(); in test_new_v1() 323 assert_eq!(uuid2.to_timestamp().unwrap().to_rfc4122().1, 1) in test_new_v1()
|
/external/rust/crates/chrono/src/naive/ |
D | datetime.rs | 2363 let to_timestamp = in test_datetime_timestamp() localVariable 2365 assert_eq!(to_timestamp(1969, 12, 31, 23, 59, 59), -1); in test_datetime_timestamp() 2366 assert_eq!(to_timestamp(1970, 1, 1, 0, 0, 0), 0); in test_datetime_timestamp() 2367 assert_eq!(to_timestamp(1970, 1, 1, 0, 0, 1), 1); in test_datetime_timestamp() 2368 assert_eq!(to_timestamp(2001, 9, 9, 1, 46, 40), 1_000_000_000); in test_datetime_timestamp() 2369 assert_eq!(to_timestamp(2038, 1, 19, 3, 14, 7), 0x7fffffff); in test_datetime_timestamp()
|