Lines Matching refs:dt
336 Some(dt) => LocalResult::Single(self.from_utc_datetime(&dt)), in timestamp_opt()
480 let dt = Utc.timestamp_millis(-1000); in test_negative_millis() localVariable
481 assert_eq!(dt.to_string(), "1969-12-31 23:59:59 UTC"); in test_negative_millis()
482 let dt = Utc.timestamp_millis(-7000); in test_negative_millis() localVariable
483 assert_eq!(dt.to_string(), "1969-12-31 23:59:53 UTC"); in test_negative_millis()
484 let dt = Utc.timestamp_millis(-7001); in test_negative_millis() localVariable
485 assert_eq!(dt.to_string(), "1969-12-31 23:59:52.999 UTC"); in test_negative_millis()
486 let dt = Utc.timestamp_millis(-7003); in test_negative_millis() localVariable
487 assert_eq!(dt.to_string(), "1969-12-31 23:59:52.997 UTC"); in test_negative_millis()
488 let dt = Utc.timestamp_millis(-999); in test_negative_millis() localVariable
489 assert_eq!(dt.to_string(), "1969-12-31 23:59:59.001 UTC"); in test_negative_millis()
490 let dt = Utc.timestamp_millis(-1); in test_negative_millis() localVariable
491 assert_eq!(dt.to_string(), "1969-12-31 23:59:59.999 UTC"); in test_negative_millis()
492 let dt = Utc.timestamp_millis(-60000); in test_negative_millis() localVariable
493 assert_eq!(dt.to_string(), "1969-12-31 23:59:00 UTC"); in test_negative_millis()
494 let dt = Utc.timestamp_millis(-3600000); in test_negative_millis() localVariable
495 assert_eq!(dt.to_string(), "1969-12-31 23:00:00 UTC"); in test_negative_millis()
503 LocalResult::Single(dt) => { in test_negative_millis()
504 assert_eq!(dt.to_string(), *expected); in test_negative_millis()
513 let dt = Utc.timestamp_nanos(-1_000_000_000); in test_negative_nanos() localVariable
514 assert_eq!(dt.to_string(), "1969-12-31 23:59:59 UTC"); in test_negative_nanos()
515 let dt = Utc.timestamp_nanos(-999_999_999); in test_negative_nanos() localVariable
516 assert_eq!(dt.to_string(), "1969-12-31 23:59:59.000000001 UTC"); in test_negative_nanos()
517 let dt = Utc.timestamp_nanos(-1); in test_negative_nanos() localVariable
518 assert_eq!(dt.to_string(), "1969-12-31 23:59:59.999999999 UTC"); in test_negative_nanos()
519 let dt = Utc.timestamp_nanos(-60_000_000_000); in test_negative_nanos() localVariable
520 assert_eq!(dt.to_string(), "1969-12-31 23:59:00 UTC"); in test_negative_nanos()
521 let dt = Utc.timestamp_nanos(-3_600_000_000_000); in test_negative_nanos() localVariable
522 assert_eq!(dt.to_string(), "1969-12-31 23:00:00 UTC"); in test_negative_nanos()