Home
last modified time | relevance | path

Searched refs:nanosecond (Results 1 – 25 of 174) sorted by relevance

1234567

/external/rust/crates/chrono/src/
Dround.rs54 let delta_down = self.nanosecond() % span; in round_subsecs()
69 let delta_down = self.nanosecond() % span; in trunc_subsecs()
281 assert_eq!(dt.round_subsecs(8).nanosecond(), 084_660_680); in test_round_subsecs()
282 assert_eq!(dt.round_subsecs(7).nanosecond(), 084_660_700); in test_round_subsecs()
283 assert_eq!(dt.round_subsecs(6).nanosecond(), 084_661_000); in test_round_subsecs()
284 assert_eq!(dt.round_subsecs(5).nanosecond(), 084_660_000); in test_round_subsecs()
285 assert_eq!(dt.round_subsecs(4).nanosecond(), 084_700_000); in test_round_subsecs()
286 assert_eq!(dt.round_subsecs(3).nanosecond(), 085_000_000); in test_round_subsecs()
287 assert_eq!(dt.round_subsecs(2).nanosecond(), 080_000_000); in test_round_subsecs()
288 assert_eq!(dt.round_subsecs(1).nanosecond(), 100_000_000); in test_round_subsecs()
[all …]
/external/rust/crates/chrono/src/format/
Dparse.rs205 let nanosecond = try_consume!(scan::nanosecond(&s[1..])); in parse_rfc3339() localVariable
206 parsed.set_nanosecond(nanosecond)?; in parse_rfc3339()
381 let nano = try_consume!(scan::nanosecond(&s[1..])); in parse_internal()
611 hour_div_12: 1, hour_mod_12: 11, minute: 45, second: 6, nanosecond: 78_901_234, in test_parse()
668 check!(".0", [fix!(Nanosecond)]; nanosecond: 0); in test_parse()
669 check!(".4", [fix!(Nanosecond)]; nanosecond: 400_000_000); in test_parse()
670 check!(".42", [fix!(Nanosecond)]; nanosecond: 420_000_000); in test_parse()
671 check!(".421", [fix!(Nanosecond)]; nanosecond: 421_000_000); in test_parse()
672 check!(".42195", [fix!(Nanosecond)]; nanosecond: 421_950_000); in test_parse()
673 check!(".421950803", [fix!(Nanosecond)]; nanosecond: 421_950_803); in test_parse()
[all …]
Dparsed.rs99 pub nanosecond: Option<u32>, field
149 nanosecond: None, in default()
295 set_if_consistent(&mut self.nanosecond, value.to_u32().ok_or(OUT_OF_RANGE)?) in set_nanosecond()
554 nano += match self.nanosecond { in to_naive_time()
583 && !(datetime.nanosecond() >= 1_000_000_000 && given_timestamp == timestamp + 1) in to_naive_datetime_with_offset()
680 let nanosecond = self.nanosecond.unwrap_or(0); in to_datetime_with_timezone() localVariable
681 let dt = NaiveDateTime::from_timestamp_opt(timestamp, nanosecond); in to_datetime_with_timezone()
1006 nanosecond: 678_901_234), in test_parsed_to_naive_time()
1012 parse!(hour_div_12: 0, hour_mod_12: 1, minute: 23, nanosecond: 456_789_012), in test_parsed_to_naive_time()
1026 nanosecond: 1_000_000_000), in test_parsed_to_naive_time()
[all …]
Dmod.rs486 Second => (2, time.map(|t| i64::from(t.second() + t.nanosecond() / 1_000_000_000))), in format_inner()
487 Nanosecond => (9, time.map(|t| i64::from(t.nanosecond() % 1_000_000_000))), in format_inner()
583 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
595 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
599 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
603 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
608 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
613 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
618 let nano = t.nanosecond() % 1_000_000_000; in format_inner()
644 let sec = t.second() + t.nanosecond() / 1_000_000_000; in format_inner()
/external/autotest/client/site_tests/platform_HighResTimers/
Dcontrol8 CRITERIA = "Fails if no timers have nanosecond resolution."
17 Reads from /proc/timer_list to see if any reported timers have nanosecond
/external/autotest/site_utils/
Dcloud_console.proto23 // nanosecond resolution.
27 // Non-negative fractions of a second at nanosecond resolution.
/external/icu/icu4c/source/data/unit/
Dce.txt51 nanosecond{
203 nanosecond{
Dsmn.txt28 nanosecond{
Dsah.txt102 nanosecond{
385 nanosecond{
Dzh_Hant_HK.txt105 nanosecond{
407 nanosecond{
654 nanosecond{
Dbs_Cyrl.txt114 nanosecond{
Dzh.txt223 nanosecond{
910 nanosecond{
1360 nanosecond{
Dmzn.txt146 nanosecond{
656 nanosecond{
Dceb.txt282 nanosecond{
283 dnam{"mga nanosecond"}
284 one{"{0} ka nanosecond"}
285 other{"{0} ka mga nanosecond"}
1251 nanosecond{
Dyue.txt235 nanosecond{
949 nanosecond{
1476 nanosecond{
Dyue_Hans.txt236 nanosecond{
950 nanosecond{
1477 nanosecond{
Dzh_Hant.txt232 nanosecond{
977 nanosecond{
1612 nanosecond{
/external/llvm-project/libcxx/docs/DesignDocs/
DFileTimeType.rst36 nanosecond resolution, and (B) use more than 64 bits (assuming a 64 bit ``time_t``).
57 To get nanosecond resolution, we simply define ``period`` to be ``std::nano``.
76 at nanosecond resolution.
80 and with nanosecond resolution).
142 So we might ask: Do users "need" nanosecond precision? Is seconds not good enough?
281 a nanosecond tick period; which is the only case where the names ``tv_sec``
284 When we convert a nanosecond duration to seconds, ``fs_timespec_rep`` will
399 * Its the representation used by chrono's ``nanosecond`` and ``second`` typedefs.
448 a nanosecond tick period.
453 * It has a larger range when representing any period longer than a nanosecond.
[all …]
/external/libcxx/docs/DesignDocs/
DFileTimeType.rst36 nanosecond resolution, and (B) use more than 64 bits (assuming a 64 bit ``time_t``).
57 To get nanosecond resolution, we simply define ``period`` to be ``std::nano``.
76 at nanosecond resolution.
80 and with nanosecond resolution).
141 So we might ask: Do users "need" nanosecond precision? Is seconds not good enough?
280 a nanosecond tick period; which is the only case where the names ``tv_sec``
283 When we convert a nanosecond duration to seconds, ``fs_timespec_rep`` will
398 * Its the representation used by chrono's ``nanosecond`` and ``second`` typedefs.
447 a nanosecond tick period.
452 * It has a larger range when representing any period longer than a nanosecond.
[all …]
/external/protobuf/src/google/protobuf/
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
98 // encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
109 // Signed fractions of a second at nanosecond resolution of the span
Dtimestamp.proto45 // nanosecond resolution. The count is relative to an epoch at UTC midnight on
106 // seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
133 // Non-negative fractions of a second at nanosecond resolution. Negative
/external/golang-protobuf/ptypes/duration/
Dduration.proto44 // as a count of seconds and fractions of seconds at nanosecond
98 // encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
109 // Signed fractions of a second at nanosecond resolution of the span
/external/rust/crates/chrono/src/offset/
Dlocal.rs166 tm.tm_nsec = local.nanosecond() as i32; in from_local_datetime()
190 tm.tm_nsec = utc.nanosecond() as i32; in from_utc_datetime()
Dfixed.rs159 let nanos = lhs.nanosecond(); in add_with_leapsecond()
/external/golang-protobuf/ptypes/timestamp/
Dtimestamp.proto45 // nanosecond resolution. The count is relative to an epoch at UTC midnight on
106 // seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
133 // Non-negative fractions of a second at nanosecond resolution. Negative

1234567