Home
last modified time | relevance | path

Searched refs:nanos_part (Results 1 – 2 of 2) sorted by relevance

/external/protobuf/src/google/protobuf/util/
Dtime_util.cc212 std::string seconds_part, nanos_part; in FromString() local
216 nanos_part = "0"; in FromString()
219 nanos_part = value.substr(pos + 1, value.length() - pos - 2); in FromString()
226 int64 nanos = strto64(nanos_part.c_str(), &end, 10); in FromString()
227 if (end != nanos_part.c_str() + nanos_part.length()) { in FromString()
230 nanos = nanos * Pow(10, 9 - nanos_part.length()); in FromString()
/external/rust/crates/chrono/src/
Doldtime.rs188 let nanos_part = self.nanos_mod_sec() / NANOS_PER_MILLI; in num_milliseconds() localVariable
189 secs_part + nanos_part as i64 in num_milliseconds()
196 let nanos_part = self.nanos_mod_sec() / NANOS_PER_MICRO; in num_microseconds() localVariable
197 secs_part.checked_add(nanos_part as i64) in num_microseconds()
204 let nanos_part = self.nanos_mod_sec(); in num_nanoseconds() localVariable
205 secs_part.checked_add(nanos_part as i64) in num_nanoseconds()