Home
last modified time | relevance | path

Searched refs:utc (Results 1 – 25 of 70) sorted by relevance

123

/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
Dtime_zone_format_test.cc76 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 …]
Dtime_zone_lookup_test.cc721 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 …]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
Dtime_test.cc683 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 …]
Dcivil_time.cc40 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()
Dformat_test.cc351 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/
Dhwclock.c33 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) timeval.tv_sec += tzone.tz_minuteswest * 60; in hwclock_main()
/third_party/lzma/CPP/Windows/
DTimeUtils.h82 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()
DPropVariantConv.cpp12 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()
DTimeUtils.cpp125 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/test_email/
Dtest_utils.py29 tzinfo=datetime.timezone.utc)
107 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
116 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
144 t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)
147 t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)
/third_party/python/Lib/test/
Ddatetimetester.py249 for tz in [self.ACDT, self.EST, timezone.utc,
255 for tz in [self.ACDT, self.EST, timezone.utc,
263 self.assertEqual(timezone.utc.utcoffset(None), ZERO)
268 self.assertIs(timezone.utc, timezone(timedelta(0)))
269 self.assertIsNot(timezone.utc, timezone(timedelta(0), 'UTC'))
270 self.assertEqual(timezone.utc, timezone(timedelta(0), 'UTC'))
286 self.assertIsInstance(timezone.utc, tzinfo)
301 self.assertIsNone(timezone.utc.dst(self.DT))
307 self.assertEqual('UTC', timezone.utc.tzname(None))
330 timezone.utc.fromutc(self.DT)
[all …]
/third_party/lzma/CPP/Common/
DMyWindows.cpp157 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/node/deps/v8/src/base/platform/
Dplatform-aix.cc73 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()
Dplatform-cygwin.cc88 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/main/tests/core/src/com/ibm/icu/dev/test/timescale/
DTimeScaleDataTest.java218 TimeZone utc; in TestDotNet() local
233 utc = new SimpleTimeZone(0, "UTC"); in TestDotNet()
234 cal = new GregorianCalendar(utc, Locale.ENGLISH); in TestDotNet()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timescale/
DTimeScaleDataTest.java221 TimeZone utc; in TestDotNet() local
236 utc = new SimpleTimeZone(0, "UTC"); in TestDotNet()
237 cal = new GregorianCalendar(utc, Locale.ENGLISH); in TestDotNet()
/third_party/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/
DEpochOffsets.java71 TimeZone utc = new SimpleTimeZone(0, "UTC"); in main() local
81 GregorianCalendar cal = new GregorianCalendar(utc, Locale.ENGLISH); in main()
/third_party/icu/icu4c/source/test/intltest/
Dtzoffloc.cpp123 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/icu4j/samples/src/com/ibm/icu/samples/util/timescale/
DPivotDemo.java45 TimeZone utc = new SimpleTimeZone(0, "UTC"); in main() local
46 Calendar cal = Calendar.getInstance(utc, Locale.ENGLISH); in main()
/third_party/python/Tools/tz/
Dzdump.py46 utc = datetime.utcfromtimestamp(trans)
56 print("%s UTC = %s %-5s isdst=%d" % (utc, lmt, abbr, tti[1]) + shift, file=stream)
/third_party/python/Lib/email/
Dutils.py147 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java113 TimeZone utc = TimeZone.getTimeZone("UTC"); in TestGetOffsetAroundTransition() local
114 Calendar cal = Calendar.getInstance(utc); in TestGetOffsetAroundTransition()
161 df.setTimeZone(utc); in TestGetOffsetAroundTransition()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/timezone/
DTimeZoneOffsetLocalTest.java115 TimeZone utc = TimeZone.getTimeZone("UTC"); in TestGetOffsetAroundTransition() local
116 Calendar cal = Calendar.getInstance(utc); in TestGetOffsetAroundTransition()
163 df.setTimeZone(utc); in TestGetOffsetAroundTransition()
/third_party/python/Lib/logging/
Dhandlers.py211 encoding=None, delay=False, utc=False, atTime=None, argument
218 self.utc = utc
285 if self.utc:
332 if not self.utc:
416 if self.utc:
441 if (self.when == 'MIDNIGHT' or self.when.startswith('W')) and not self.utc:
/third_party/lzma/C/Util/7z/
D7zMain.c331 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 LONG bias = (int)(mktime(ptm)-utc); in TIME_GetBias()

123