Searched refs:with_nanosecond (Results 1 – 6 of 6) sorted by relevance
160 let lhs = lhs.with_nanosecond(0).unwrap(); in add_with_leapsecond()161 (lhs + OldDuration::seconds(i64::from(rhs))).with_nanosecond(nanos).unwrap() in add_with_leapsecond()
586 assert_eq!(dt.with_nanosecond(1_026_490_000).unwrap().format("%.f").to_string(), ".026490"); in test_strftime_docs()607 dt.with_nanosecond(1_026_490_000).unwrap().format("%+").to_string(), in test_strftime_docs()
1183 fn with_nanosecond(&self, nano: u32) -> Option<NaiveDateTime> { in with_nanosecond() method1184 self.time.with_nanosecond(nano).map(|t| NaiveDateTime { time: t, ..*self }) in with_nanosecond()
985 fn with_nanosecond(&self, nano: u32) -> Option<NaiveTime> { in with_nanosecond() method
1412 fn with_nanosecond(&self, nano: u32) -> Option<Self>; in with_nanosecond() method
643 fn with_nanosecond(&self, nano: u32) -> Option<DateTime<Tz>> { in with_nanosecond() method644 map_local(self, |datetime| datetime.with_nanosecond(nano)) in with_nanosecond()