/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/ |
H A 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() 594 const time_zone utc = utc_time_zone(); TEST() local 683 const time_zone utc = utc_time_zone(); TEST() local 716 const time_zone utc = utc_time_zone(); TEST() local 757 const time_zone utc = utc_time_zone(); TEST() local 1295 const time_zone utc = utc_time_zone(); TEST() local 1326 const time_zone utc = utc_time_zone(); TEST() local 1373 const time_zone utc = utc_time_zone(); TEST() local 1427 const time_zone utc = utc_time_zone(); TEST() local 1470 const time_zone utc = utc_time_zone(); TEST() local 1492 const time_zone utc = utc_time_zone(); TEST() local 1572 time_zone utc = utc_time_zone(); TEST() local 1581 const time_zone utc = utc_time_zone(); TEST() local 1591 const time_zone utc = utc_time_zone(); TEST() local [all...] |
H A 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() local 835 ExpectTime(chrono::time_point_cast<chrono::microseconds>(t0), utc, 1970, 1, 1, in TEST() local 837 ExpectTime(chrono::time_point_cast<chrono::milliseconds>(t0), utc, 1970, 1, 1, in TEST() local 839 ExpectTime(chrono::time_point_cast<chrono::seconds>(t0), utc, 197 in TEST() local 842 utc, 1970, 1, 1, 0, 0, 0, 0, false, "UTC"); TEST() local 843 ExpectTime(chrono::time_point_cast<chrono::minutes>(t0), utc, 1970, 1, 1, 0, TEST() local 845 ExpectTime(chrono::time_point_cast<chrono::hours>(t0), utc, 1970, 1, 1, 0, 0, TEST() local 904 const time_zone utc = utc_time_zone(); TEST() local 949 const time_zone utc = utc_time_zone(); TEST() local [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/time/ |
H A 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() 723 const absl::TimeZone utc = absl::UTCTimeZone(); TEST() local 952 const absl::TimeZone utc = absl::UTCTimeZone(); TEST() local 1158 const absl::TimeZone utc = absl::UTCTimeZone(); TEST() local 1175 const absl::TimeZone utc = absl::UTCTimeZone(); TEST() local [all...] |
H A D | civil_time.cc | 40 const TimeZone utc = UTCTimeZone(); in FormatYearAnd() local 41 return StrCat(cs.year(), FormatTime(fmt, FromCivil(ncs, utc), utc)); in FormatYearAnd() 58 const TimeZone utc = UTCTimeZone(); in ParseYearAnd() local 60 if (ParseTime(StrCat("%Y", fmt), norm, utc, &t, nullptr)) { in ParseYearAnd() 61 const auto cs = ToCivilSecond(t, utc); in ParseYearAnd()
|
H A D | format_test.cc | 351 const absl::TimeZone utc = absl::UTCTimeZone(); in TEST() local 354 absl::ParseTime("%Y-%m-%d", "-292277022657-01-27", utc, &t, nullptr)); in TEST() 356 absl::ParseTime("%Y-%m-%d", "-292277022657-01-28", utc, &t, nullptr)); in TEST() 358 absl::ParseTime("%Y-%m-%d", "292277026596-12-04", utc, &t, nullptr)); in TEST() 360 absl::ParseTime("%Y-%m-%d", "292277026596-12-05", utc, &t, nullptr)); in TEST()
|
/third_party/toybox/toys/other/ |
H A D | hwclock.c | 7 USE_HWCLOCK(NEWTOY(hwclock, ">0(fast)f(rtc):u(utc)l(localtime)t(systz)s(hctosys)r(show)w(systohc)[-ul][!rtsw]", TOYFLAG_SBIN)) 22 -u Hardware clock uses UTC (--utc) 33 int utc; 68 if (toys.optflags & FLAG_u) TT.utc = 1; in hwclock_main() 75 free(s), s = 0) TT.utc += !strncmp(s, "UTC", 3); in hwclock_main() 94 if (TT.utc) s = xtzset("UTC0"); in hwclock_main() 96 if (TT.utc) { in hwclock_main() 105 if (!(TT.utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm)) in hwclock_main() 106 error_exit(TT.utc ? "gmtime_r failed" : "localtime_r failed"); in hwclock_main() 124 if (!TT.utc) timeva in hwclock_main() [all...] |
/third_party/lzma/CPP/Windows/ |
H A D | PropVariantConv.cpp | 12 bool ConvertUtcFileTimeToString2(const FILETIME &utc, unsigned ns100, char *s, int level) throw()
in ConvertUtcFileTimeToString2() argument 16 if (!FileTimeToLocalFileTime(&utc, &ft))
in ConvertUtcFileTimeToString2() 92 bool ConvertUtcFileTimeToString(const FILETIME &utc, char *s, int level) throw()
in ConvertUtcFileTimeToString() argument 94 return ConvertUtcFileTimeToString2(utc, 0, s, level);
in ConvertUtcFileTimeToString()
|
H A D | TimeUtils.h | 82 bool UtcFileTime_To_LocalDosTime(const FILETIME &utc, UInt32 &dosTime) throw();
137 FILETIME localFileTime, utc;
in PropVariant_SetFrom_DosTime() local 140 if (!LocalFileTimeToFileTime(&localFileTime, &utc))
in PropVariant_SetFrom_DosTime() 142 prop.SetAsTimeFrom_FT_Prec(utc, k_PropVar_TimePrec_DOS);
in PropVariant_SetFrom_DosTime()
|
H A D | TimeUtils.cpp | 125 bool UtcFileTime_To_LocalDosTime(const FILETIME &utc, UInt32 &dosTime) throw()
in UtcFileTime_To_LocalDosTime() argument 128 const UInt64 u1 = FILETIME_To_UInt64(utc);
in UtcFileTime_To_LocalDosTime() 132 if (!FileTimeToLocalFileTime(&utc, &loc))
in UtcFileTime_To_LocalDosTime() 133 loc = utc;
in UtcFileTime_To_LocalDosTime() 139 loc = utc;
in UtcFileTime_To_LocalDosTime()
|
/third_party/python/Lib/test/ |
H A D | datetimetester.py | 72 self.assertIs(UTC, timezone.utc) 259 for tz in [self.ACDT, self.EST, timezone.utc, 265 for tz in [self.ACDT, self.EST, timezone.utc, 273 self.assertEqual(timezone.utc.utcoffset(None), ZERO) 278 self.assertIs(timezone.utc, timezone(timedelta(0))) 279 self.assertIsNot(timezone.utc, timezone(timedelta(0), 'UTC')) 280 self.assertEqual(timezone.utc, timezone(timedelta(0), 'UTC')) 296 self.assertIsInstance(timezone.utc, tzinfo) 311 self.assertIsNone(timezone.utc.dst(self.DT)) 317 self.assertEqual('UTC', timezone.utc [all...] |
/third_party/lzma/CPP/Common/ |
H A D | MyWindows.cpp | 157 time_t utc = time(NULL);
in TIME_GetBias() local 158 struct tm *ptm = localtime(&utc);
in TIME_GetBias() 160 ptm = gmtime(&utc);
in TIME_GetBias() 162 LONG bias = (int)(mktime(ptm)-utc);
in TIME_GetBias()
|
/third_party/python/Lib/test/test_email/ |
H A D | test_utils.py | 29 tzinfo=datetime.timezone.utc) 116 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc) 125 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc) 153 t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc) 156 t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)
|
/third_party/node/deps/v8/src/base/platform/ |
H A D | platform-aix.cc | 73 time_t utc = time(nullptr); in LocalTimeOffset() local 74 DCHECK_NE(utc, -1); in LocalTimeOffset() 76 struct tm* loc = localtime_r(&utc, &tm); in LocalTimeOffset()
|
H A D | platform-cygwin.cc | 88 time_t utc = time(nullptr); in LocalTimeOffset() local 89 DCHECK_NE(utc, -1); in LocalTimeOffset() 91 struct tm* loc = localtime_r(&utc, &tm); in LocalTimeOffset() 94 return static_cast<double>((mktime(loc) - utc) * msPerSecond - in LocalTimeOffset()
|
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
H A D | EpochOffsets.java | 71 TimeZone utc = new SimpleTimeZone(0, "UTC"); in main() 75 // Original code: Calendar cal = Calendar.getInstance(utc, Locale.ENGLISH); in main() 81 GregorianCalendar cal = new GregorianCalendar(utc, Locale.ENGLISH); in main()
|
/third_party/icu/icu4c/source/test/intltest/ |
H A D | tzoffloc.cpp | 123 TimeZone* utc = TimeZone::createTimeZone("UTC"); in TestGetOffsetAroundTransition() local 124 Calendar* cal = Calendar::createInstance(*utc, status); in TestGetOffsetAroundTransition() 200 df.setTimeZone(*utc); in TestGetOffsetAroundTransition() 327 delete utc; in TestGetOffsetAroundTransition()
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/ |
H A D | TimeScaleDataTest.java | 221 TimeZone utc; in TestDotNet() 236 utc = new SimpleTimeZone(0, "UTC"); in TestDotNet() 237 cal = new GregorianCalendar(utc, Locale.ENGLISH); in TestDotNet()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
H A D | TimeScaleDataTest.java | 218 TimeZone utc; in TestDotNet() 233 utc = new SimpleTimeZone(0, "UTC"); in TestDotNet() 234 cal = new GregorianCalendar(utc, Locale.ENGLISH); in TestDotNet()
|
/third_party/icu/icu4j/samples/src/com/ibm/icu/samples/util/timescale/ |
H A D | PivotDemo.java | 45 TimeZone utc = new SimpleTimeZone(0, "UTC"); in main() 46 Calendar cal = Calendar.getInstance(utc, Locale.ENGLISH); in main()
|
/third_party/python/Tools/tz/ |
H A D | zdump.py | 46 utc = datetime.utcfromtimestamp(trans) 56 print("%s UTC = %s %-5s isdst=%d" % (utc, lmt, abbr, tti[1]) + shift, file=stream)
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/ |
H A D | TimeZoneOffsetLocalTest.java | 115 TimeZone utc = TimeZone.getTimeZone("UTC"); in TestGetOffsetAroundTransition() 116 Calendar cal = Calendar.getInstance(utc); in TestGetOffsetAroundTransition() 163 df.setTimeZone(utc); in TestGetOffsetAroundTransition()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
H A D | TimeZoneOffsetLocalTest.java | 113 TimeZone utc = TimeZone.getTimeZone("UTC"); in TestGetOffsetAroundTransition() 114 Calendar cal = Calendar.getInstance(utc); in TestGetOffsetAroundTransition() 161 df.setTimeZone(utc); in TestGetOffsetAroundTransition()
|
/third_party/python/Lib/email/ |
H A D | utils.py | 147 dt = datetime.datetime.fromtimestamp(timeval, datetime.timezone.utc) 164 if dt.tzinfo is None or dt.tzinfo != datetime.timezone.utc: 349 return datetime.datetime.now(datetime.timezone.utc).astimezone()
|
/third_party/lzma/C/Util/7z/ |
H A D | 7zMain.c | 331 const time_t utc = time(NULL);
in TIME_GetBias() local 332 struct tm *ptm = localtime(&utc);
in TIME_GetBias() 334 ptm = gmtime(&utc);
in TIME_GetBias() 336 const LONG bias = (int)(mktime(ptm) - utc);
in TIME_GetBias()
|
/third_party/python/Lib/logging/ |
H A D | handlers.py | 211 encoding=None, delay=False, utc=False, atTime=None, 218 self.utc = utc 285 if self.utc: 332 if not self.utc: 420 if self.utc: 445 if (self.when == 'MIDNIGHT' or self.when.startswith('W')) and not self.utc:
|