/external/openscreen/third_party/abseil/src/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 721 const time_zone utc = utc_time_zone(); in TEST() local 722 EXPECT_EQ("UTC", utc.name()); in TEST() 818 const time_zone utc = utc_time_zone(); in TEST() local 821 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 823 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 825 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 827 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() 830 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); in TEST() 831 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, in TEST() 833 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, in TEST() [all …]
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 721 const time_zone utc = utc_time_zone(); in TEST() local 722 EXPECT_EQ("UTC", utc.name()); in TEST() 818 const time_zone utc = utc_time_zone(); in TEST() local 821 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 823 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 825 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 827 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() 830 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); in TEST() 831 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, in TEST() 833 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 721 const time_zone utc = utc_time_zone(); in TEST() local 725 EXPECT_EQ(loaded_utc, utc); in TEST() 729 EXPECT_EQ(loaded_utc0, utc); in TEST() 733 const time_zone utc = utc_time_zone(); in TEST() local 734 EXPECT_EQ("UTC", utc.name()); in TEST() 830 const time_zone utc = utc_time_zone(); in TEST() local 833 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 835 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 837 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 839 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 721 const time_zone utc = utc_time_zone(); in TEST() local 722 EXPECT_EQ("UTC", utc.name()); in TEST() 818 const time_zone utc = utc_time_zone(); in TEST() local 821 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 823 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 825 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 827 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() 830 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); in TEST() 831 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, in TEST() 833 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, in TEST() [all …]
|
/external/libsrtp2/crypto/replay/ |
D | ut_sim.c | 61 void ut_init(ut_connection *utc) in ut_init() argument 64 utc->index = 0; in ut_init() 67 utc->buffer[i] = i; in ut_init() 69 qsort(utc->buffer, UT_BUF, sizeof(uint32_t), ut_compar); in ut_init() 71 utc->index = UT_BUF - 1; in ut_init() 74 uint32_t ut_next_index(ut_connection *utc) in ut_next_index() argument 78 tmp = utc->buffer[0]; in ut_next_index() 79 utc->index++; in ut_next_index() 80 utc->buffer[0] = utc->index; in ut_next_index() 82 qsort(utc->buffer, UT_BUF, sizeof(uint32_t), ut_compar); in ut_next_index() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 720 const time_zone utc = utc_time_zone(); in TEST() local 721 EXPECT_EQ("UTC", utc.name()); in TEST() 817 const time_zone utc = utc_time_zone(); in TEST() local 820 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 822 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 824 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 826 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() 829 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); in TEST() 830 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, in TEST() 832 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, in TEST() [all …]
|
/external/abseil-cpp/absl/time/internal/cctz/src/ |
D | time_zone_format_test.cc | 76 const time_zone utc = utc_time_zone(); in TEST() local 83 format(kFmt, chrono::time_point_cast<chrono::nanoseconds>(t0), utc)); in TEST() 86 format(kFmt, chrono::time_point_cast<chrono::microseconds>(t0), utc)); in TEST() 89 format(kFmt, chrono::time_point_cast<chrono::milliseconds>(t0), utc)); in TEST() 91 format(kFmt, chrono::time_point_cast<chrono::seconds>(t0), utc)); in TEST() 96 utc)); in TEST() 98 format(kFmt, chrono::time_point_cast<chrono::minutes>(t0), utc)); in TEST() 100 format(kFmt, chrono::time_point_cast<chrono::hours>(t0), utc)); in TEST() 105 const time_zone utc = utc_time_zone(); in TEST() local 113 detail::format(kFmt, tp, detail::femtoseconds(123456789012345), utc)); in TEST() [all …]
|
D | time_zone_lookup_test.cc | 720 const time_zone utc = utc_time_zone(); in TEST() local 721 EXPECT_EQ("UTC", utc.name()); in TEST() 817 const time_zone utc = utc_time_zone(); in TEST() local 820 ExpectTime(chrono::time_point_cast<chrono::nanoseconds>(t0), utc, 1970, 1, 1, in TEST() 822 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() 824 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() 826 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 1970, 1, 1, 0, in TEST() 829 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); in TEST() 830 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, in TEST() 832 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, in TEST() [all …]
|
/external/toybox/toys/other/ |
D | hwclock.c | 39 int fd = -1, utc; local 41 if (FLAG(u)) utc = 1; 42 else if (FLAG(l)) utc = 0; 43 else utc = !readfile("/etc/adjtime", toybuf, sizeof(toybuf)) || 53 timeval.tv_sec = xmktime(&tm, utc); 60 if (!(utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) 61 error_exit(utc ? "gmtime_r failed" : "localtime_r failed"); 77 if (!utc) timeval.tv_sec += tzone.tz_minuteswest * 60;
|
D | rtcwake.c | 44 int fd, utc; in rtcwake_main() local 56 if (FLAG(u)) utc = 1; in rtcwake_main() 57 else if (FLAG(l)) utc = 0; in rtcwake_main() 58 else utc = !readfile("/etc/adjtime", toybuf, 2048) || !!strstr(toybuf, "UTC"); in rtcwake_main() 59 if (FLAG(v)) xprintf("RTC time: %s\n", utc ? "UTC" : "local"); in rtcwake_main() 67 rtc_now = xmktime(&rtc_tm, utc); in rtcwake_main() 95 if (!(utc ? gmtime_r : localtime_r)(&then, (void *)&alarm->time)) in rtcwake_main() 96 error_exit("%s failed", utc ? "gmtime_r" : "localtime_r"); in rtcwake_main()
|
/external/toybox/tests/ |
D | stat.test | 7 TZ=utc touch -at 200001010101.01 file 13 TZ=utc testcmd "%x" "-c %x file" "2000-01-01 01:01:01.000000000 +0000\n" "" "" 14 TZ=utc testcmd "%X" "-c %X file" "946688461\n" "" "" 16 TZ=utc touch -mt 200002020202.02 file 17 TZ=utc testcmd "%y" "-c %y file" "2000-02-02 02:02:02.000000000 +0000\n" "" "" 18 TZ=utc testcmd "%Y" "-c %Y file" "949456922\n" "" ""
|
/external/rust/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 683 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 691 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 absl::FormatTime(fmt, t, utc)); in TEST() 695 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 696 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 700 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 absl::FormatTime(fmt, t, utc)); in TEST() 704 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 705 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 708 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/webrtc/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 680 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 688 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 690 absl::FormatTime(fmt, t, utc)); in TEST() 692 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 697 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 699 absl::FormatTime(fmt, t, utc)); in TEST() 701 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 705 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/libtextclassifier/abseil-cpp/absl/time/ |
D | time_test.cc | 683 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 691 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 absl::FormatTime(fmt, t, utc)); in TEST() 695 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 696 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 700 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 absl::FormatTime(fmt, t, utc)); in TEST() 704 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 705 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 708 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/abseil-cpp/absl/time/ |
D | time_test.cc | 680 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 688 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 690 absl::FormatTime(fmt, t, utc)); in TEST() 692 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 697 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 699 absl::FormatTime(fmt, t, utc)); in TEST() 701 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 705 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/openscreen/third_party/abseil/src/absl/time/ |
D | time_test.cc | 683 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 691 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 absl::FormatTime(fmt, t, utc)); in TEST() 695 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 696 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 700 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 absl::FormatTime(fmt, t, utc)); in TEST() 704 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 705 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 708 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/angle/third_party/abseil-cpp/absl/time/ |
D | time_test.cc | 683 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 691 absl::CivilSecond(292091940881, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 693 absl::FormatTime(fmt, t, utc)); in TEST() 695 absl::CivilSecond(292091940882, kMax, kMax, kMax, kMax, kMax), utc); in TEST() 696 EXPECT_EQ("infinite-future", absl::FormatTime(fmt, t, utc)); // no overflow in TEST() 700 absl::CivilSecond(-292091936940, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 702 absl::FormatTime(fmt, t, utc)); in TEST() 704 absl::CivilSecond(-292091936941, kMin, kMin, kMin, kMin, kMin), utc); in TEST() 705 EXPECT_EQ("infinite-past", absl::FormatTime(fmt, t, utc)); // no underflow in TEST() 708 t = absl::FromCivil(absl::CivilSecond(1900, 2, 28, 23, 59, 59), utc); in TEST() [all …]
|
/external/rust/crates/chrono/src/offset/ |
D | local.rs | 133 fn offset_from_utc_date(&self, utc: &NaiveDate) -> FixedOffset { in offset_from_utc_date() 134 *self.from_utc_date(utc).offset() in offset_from_utc_date() 137 fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> FixedOffset { in offset_from_utc_datetime() 138 *self.from_utc_datetime(utc).offset() in offset_from_utc_datetime() 171 fn from_utc_date(&self, utc: &NaiveDate) -> Date<Local> { in from_utc_date() 172 let midnight = self.from_utc_datetime(&utc.and_hms(0, 0, 0)); in from_utc_date() 173 Date::from_utc(*utc, *midnight.offset()) in from_utc_date() 177 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Local> { in from_utc_datetime() 180 DateTime::from_utc(*utc, offset) in from_utc_datetime() 184 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Local> { in from_utc_datetime() [all …]
|
D | mod.rs | 446 fn offset_from_utc_date(&self, utc: &NaiveDate) -> Self::Offset; in offset_from_utc_date() 449 fn offset_from_utc_datetime(&self, utc: &NaiveDateTime) -> Self::Offset; in offset_from_utc_datetime() 453 fn from_utc_date(&self, utc: &NaiveDate) -> Date<Self> { in from_utc_date() 454 Date::from_utc(*utc, self.offset_from_utc_date(utc)) in from_utc_date() 459 fn from_utc_datetime(&self, utc: &NaiveDateTime) -> DateTime<Self> { in from_utc_datetime() 460 DateTime::from_utc(*utc, self.offset_from_utc_datetime(utc)) in from_utc_datetime() 467 mod utc; module 472 pub use self::utc::Utc;
|
/external/rust/crates/chrono/src/sys/ |
D | windows.rs | 94 let mut utc = mem::zeroed(); in time_to_local_tm() localVariable 96 call!(FileTimeToSystemTime(&ft, &mut utc)); in time_to_local_tm() 97 call!(SystemTimeToTzSpecificLocalTime(0 as *const _, &mut utc, &mut local)); in time_to_local_tm() 125 let mut utc = mem::zeroed(); in local_tm_to_time() localVariable 127 call!(TzSpecificLocalTimeToSystemTime(0 as *mut _, &mut sys_time, &mut utc)); in local_tm_to_time() 128 call!(SystemTimeToFileTime(&utc, &mut ft)); in local_tm_to_time()
|