Searched refs:timestamp_millis (Results 1 – 7 of 7) sorted by relevance
354 fn timestamp_millis(&self, millis: i64) -> DateTime<Self> { in timestamp_millis() method480 let dt = Utc.timestamp_millis(-1000); in test_negative_millis()482 let dt = Utc.timestamp_millis(-7000); in test_negative_millis()484 let dt = Utc.timestamp_millis(-7001); in test_negative_millis()486 let dt = Utc.timestamp_millis(-7003); in test_negative_millis()488 let dt = Utc.timestamp_millis(-999); in test_negative_millis()490 let dt = Utc.timestamp_millis(-1); in test_negative_millis()492 let dt = Utc.timestamp_millis(-60000); in test_negative_millis()494 let dt = Utc.timestamp_millis(-3600000); in test_negative_millis()
54 assert_eq!(now.get_time() as i64, dt.timestamp_millis()); in from_is_exact()
52 pub fn timestamp_millis(&self) -> Timestamp { in timestamp_millis() method
286 Some(Millis) => self.buf.timestamp_millis(), in write_timestamp()
139 pub fn timestamp_millis(&self) -> i64 { in timestamp_millis() method140 self.datetime.timestamp_millis() in timestamp_millis()1509 serializer.serialize_i64(dt.timestamp_millis()) in serialize()1659 Some(ref dt) => serializer.serialize_some(&dt.timestamp_millis()), in serialize()
311 pub fn timestamp_millis(&self) -> i64 { in timestamp_millis() method1978 serializer.serialize_i64(dt.timestamp_millis()) in serialize()
177 * Fix panic on negative inputs to timestamp_millis (@cmars #292)249 * New `timestamp_millis` method on `DateTime` and `NaiveDateTim` that returns