/libcore/benchmarks/src/benchmarks/regression/ |
RelativeDateTimeFormatterBenchmark.java | 29 TimeZone utc = TimeZone.getTimeZone("Europe/London"); local 33 getRelativeTimeSpanString(l, utc, 0L, 0L, 0L, flags); 39 TimeZone utc = TimeZone.getTimeZone("UTC"); local 43 getRelativeTimeSpanString(l, utc, 0L, 0L, 0L, flags); 49 TimeZone utc = TimeZone.getTimeZone("UTC"); local 53 getRelativeDateTimeString(l, utc, 0L, 0L, 0L, 0L, flags); 59 TimeZone utc = TimeZone.getTimeZone("America/Los_Angeles"); local 63 getRelativeDateTimeString(l, utc, 0L, 0L, 0L, 0L, flags) [all...] |
DateIntervalFormatBenchmark.java | 28 TimeZone utc = TimeZone.getTimeZone("UTC"); local 32 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags); 38 TimeZone utc = TimeZone.getTimeZone("UTC"); local 42 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags); 48 TimeZone utc = TimeZone.getTimeZone("UTC"); local 52 DateIntervalFormat.formatDateRange(l, utc, 0L, 0L, flags);
|
/external/toybox/toys/other/ |
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_USR|TOYFLAG_BIN)) 20 -u Hardware clock uses UTC (--utc) 31 int utc; 66 if (toys.optflags & FLAG_u) TT.utc = 1; 73 free(s), s = 0) TT.utc += !strncmp(s, "UTC", 3); 92 if (TT.utc) s = xtzset("UTC0"); 94 if (TT.utc) { 103 if (!(TT.utc ? gmtime_r : localtime_r)(&timeval.tv_sec, &tm) [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
DateIntervalFormatTest.java | 187 TimeZone utc = TimeZone.getTimeZone("UTC"); local 191 // The Unix epoch is UTC, so 0 is 1970-01-01T00:00Z... 192 assertEquals("Jan 1, 1970, 00:00 ? Jan 2, 1970, 00:00", formatDateRange(l, utc, 0, DAY + 1, flags)); 209 TimeZone utc = TimeZone.getTimeZone("UTC"); local 212 assertEquals("00:00", formatDateRange(l, utc, midnight, midnight, time24)); 213 assertEquals("12:00 AM", formatDateRange(l, utc, midnight, midnight, time12)); 214 assertEquals("16:00", formatDateRange(l, utc, teaTime, teaTime, time24)); 215 assertEquals("4:00 PM", formatDateRange(l, utc, teaTime, teaTime, time12)) 236 TimeZone utc = TimeZone.getTimeZone("UTC"); local 260 TimeZone utc = TimeZone.getTimeZone("UTC"); local 272 TimeZone utc = TimeZone.getTimeZone("UTC"); local 311 TimeZone utc = TimeZone.getTimeZone("UTC"); local 334 TimeZone utc = TimeZone.getTimeZone("UTC"); local 369 TimeZone utc = TimeZone.getTimeZone("UTC"); local 387 TimeZone utc = TimeZone.getTimeZone("UTC"); local 417 TimeZone utc = TimeZone.getTimeZone("UTC"); local [all...] |
/external/autotest/client/cros/ |
rtc.py | 20 def get_seconds(utc=True, rtc_device='rtc0'):
|
/external/autotest/client/common_lib/ |
time_utils.py | 108 """Transforms a datetime object into a utc timestamp. 112 @returns A datetime as a UTC floating point timestamp in seconds since 118 epoch = datetime.datetime(1970, 1, 1, tzinfo=pytz.utc) 120 utc_datetime = local_datetime.astimezone(tz=pytz.utc)
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/timescale/ |
EpochOffsets.java | 71 TimeZone utc = new SimpleTimeZone(0, "UTC"); local 75 // Original code: Calendar cal = Calendar.getInstance(utc, Locale.ENGLISH); 81 GregorianCalendar cal = new GregorianCalendar(utc, Locale.ENGLISH);
|
/external/icu/icu4j/samples/src/com/ibm/icu/samples/util/timescale/ |
PivotDemo.java | 45 TimeZone utc = new SimpleTimeZone(0, "UTC"); local 46 Calendar cal = Calendar.getInstance(utc, Locale.ENGLISH);
|
/external/v8/src/base/platform/ |
platform-aix.cc | 58 time_t utc = time(NULL); local 59 DCHECK(utc != -1); 61 struct tm* loc = localtime_r(&utc, &tm); 63 return static_cast<double>((mktime(loc) - utc) * msPerSecond);
|
platform-cygwin.cc | 41 time_t utc = time(NULL); local 42 DCHECK(utc != -1); 44 struct tm* loc = localtime_r(&utc, &tm); 47 return static_cast<double>((mktime(loc) - utc) * msPerSecond -
|
/external/skia/infra/bots/recipes/ |
ct_skps.py | 211 utc = api.time.utcnow() 213 ct_page_type, utc.year, utc.month, utc.day, utc.hour)
|
/external/icu/icu4c/source/test/intltest/ |
tzoffloc.cpp | 123 TimeZone* utc = TimeZone::createTimeZone("UTC"); local 124 Calendar* cal = Calendar::createInstance(*utc, status); 200 df.setTimeZone(*utc); 327 delete utc;
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timescale/ |
TimeScaleDataTest.java | 216 TimeZone utc; local 231 utc = new SimpleTimeZone(0, "UTC"); 232 cal = new GregorianCalendar(utc, Locale.ENGLISH);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/timezone/ |
TimeZoneOffsetLocalTest.java | 110 TimeZone utc = TimeZone.getTimeZone("UTC"); local 111 Calendar cal = Calendar.getInstance(utc); 158 df.setTimeZone(utc);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
TimeScaleDataTest.java | 215 TimeZone utc; local 230 utc = new SimpleTimeZone(0, "UTC"); 231 cal = new GregorianCalendar(utc, Locale.ENGLISH);
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timezone/ |
TimeZoneOffsetLocalTest.java | 109 TimeZone utc = TimeZone.getTimeZone("UTC"); local 110 Calendar cal = Calendar.getInstance(utc); 157 df.setTimeZone(utc);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
test_time.py | 153 utc='UTC+0'
157 # Make sure we can switch to UTC time and results are correct
158 # Note that unknown timezones default to UTC.
159 # Note that altzone is undefined in UTC, as there is no DST
162 environ['TZ'] = utc
|
/external/python/cpython2/Lib/test/ |
test_time.py | 153 utc='UTC+0' 157 # Make sure we can switch to UTC time and results are correct 158 # Note that unknown timezones default to UTC. 159 # Note that altzone is undefined in UTC, as there is no DST 162 environ['TZ'] = utc 188 # Issue #11886: Australian Eastern Standard Time (UTC+10) is called 189 # "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some
|
/libcore/luni/src/test/java/libcore/java/util/ |
FormatterTest.java | 182 TimeZone utc = TimeZone.getTimeZone("UTC"); local 184 Calendar c = new GregorianCalendar(utc);
|
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_time.py | 153 utc='UTC+0' 157 # Make sure we can switch to UTC time and results are correct 158 # Note that unknown timezones default to UTC. 159 # Note that altzone is undefined in UTC, as there is no DST 162 environ['TZ'] = utc 188 # Issue #11886: Australian Eastern Standard Time (UTC+10) is called 189 # "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_time.py | 153 utc='UTC+0' 157 # Make sure we can switch to UTC time and results are correct 158 # Note that unknown timezones default to UTC. 159 # Note that altzone is undefined in UTC, as there is no DST 162 environ['TZ'] = utc 188 # Issue #11886: Australian Eastern Standard Time (UTC+10) is called 189 # "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_time.py | 153 utc='UTC+0' 157 # Make sure we can switch to UTC time and results are correct 158 # Note that unknown timezones default to UTC. 159 # Note that altzone is undefined in UTC, as there is no DST 162 environ['TZ'] = utc 188 # Issue #11886: Australian Eastern Standard Time (UTC+10) is called 189 # "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_time.py | 153 utc='UTC+0' 157 # Make sure we can switch to UTC time and results are correct 158 # Note that unknown timezones default to UTC. 159 # Note that altzone is undefined in UTC, as there is no DST 162 environ['TZ'] = utc 188 # Issue #11886: Australian Eastern Standard Time (UTC+10) is called 189 # "EST" (as Eastern Standard Time, UTC-5) instead of "AEST" on some
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/logging/ |
handlers.py | 170 def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False):
174 self.utc = utc
237 if self.utc:
271 if not self.utc:
331 if self.utc:
355 if (self.when == 'MIDNIGHT' or self.when.startswith('W')) and not self.utc:
[all...] |
/external/python/cpython2/Lib/logging/ |
handlers.py | 170 def __init__(self, filename, when='h', interval=1, backupCount=0, encoding=None, delay=False, utc=False): 174 self.utc = utc 237 if self.utc: 271 if not self.utc: 334 if self.utc: 360 if (self.when == 'MIDNIGHT' or self.when.startswith('W')) and not self.utc: [all...] |