Home
last modified time | relevance | path

Searched refs:with_nanosecond (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/chrono/src/offset/
Dfixed.rs160 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()
/external/rust/crates/chrono/src/format/
Dstrftime.rs586 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()
/external/rust/crates/chrono/src/naive/
Ddatetime.rs1183 fn with_nanosecond(&self, nano: u32) -> Option<NaiveDateTime> { in with_nanosecond() method
1184 self.time.with_nanosecond(nano).map(|t| NaiveDateTime { time: t, ..*self }) in with_nanosecond()
Dtime.rs985 fn with_nanosecond(&self, nano: u32) -> Option<NaiveTime> { in with_nanosecond() method
/external/rust/crates/chrono/src/
Dlib.rs1412 fn with_nanosecond(&self, nano: u32) -> Option<Self>; in with_nanosecond() method
Ddatetime.rs643 fn with_nanosecond(&self, nano: u32) -> Option<DateTime<Tz>> { in with_nanosecond() method
644 map_local(self, |datetime| datetime.with_nanosecond(nano)) in with_nanosecond()