/third_party/jerryscript/tools/runners/ |
H A D | util.py | 27 def set_timezone(timezone): 29 subprocess.call(['cmd', '/S', '/C', 'tzutil', '/s', timezone]) 32 def set_timezone_and_exit(timezone): 34 set_timezone(timezone) 43 def set_sighdl_to_reset_timezone(timezone): 45 signal.signal(signal.SIGINT, lambda signal, frame: set_timezone_and_exit(timezone))
|
/third_party/python/Lib/test/ |
H A D | datetimetester.py | 31 from datetime import timezone namespace 72 self.assertIs(UTC, timezone.utc) 88 'datetime_CAPI', 'time', 'timedelta', 'timezone', 211 (timezone, (offset,)), 212 (timezone, (offset, "EST"))]: 254 self.ACDT = timezone(timedelta(hours=9.5), 'ACDT') 255 self.EST = timezone(-timedelta(hours=5), 'EST') 259 for tz in [self.ACDT, self.EST, timezone.utc, 260 timezone.min, timezone [all...] |
H A D | test_strptime.py | 77 # Make sure timezone is correct 78 timezone = time.strftime("%Z", self.time_tuple).lower() 79 if timezone: 80 self.assertTrue(timezone in self.LT_ins.timezone[0] or 81 timezone in self.LT_ins.timezone[1], 82 "timezone %s not found in %s" % 83 (timezone, self.LT_ins.timezone)) [all...] |
/third_party/musl/porting/liteos_a/kernel/include/sys/ |
H A D | time.h | 23 struct timezone { struct 29 int settimeofday64(const struct timeval64 *, const struct timezone *__restrict); 30 int gettimeofday64(struct timeval64 *, struct timezone *__restrict); 33 int gettimeofday (struct timeval *__restrict, struct timezone *__restrict); 61 int settimeofday(const struct timeval *, const struct timezone *);
|
/third_party/python/Lib/email/ |
H A D | utils.py | 135 returns a date relative to the local timezone instead of UTC, properly 138 Optional argument usegmt means that the timezone is written out as 147 dt = datetime.datetime.fromtimestamp(timeval, datetime.timezone.utc) 164 if dt.tzinfo is None or dt.tzinfo != datetime.timezone.utc: 205 tzinfo=datetime.timezone(datetime.timedelta(seconds=tz))) 349 return datetime.datetime.now(datetime.timezone.utc).astimezone() 360 tz = datetime.timezone(delta, localtm.tm_zone) 366 gmtoff = -(time.altzone if dst else time.timezone) 368 tz = datetime.timezone(delta, time.tzname[dst]) 370 tz = datetime.timezone(delt [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test_utils.py | 15 tz = datetime.timezone(utcoffset) 29 tzinfo=datetime.timezone.utc) 116 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc) 119 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5))) 125 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc) 128 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5))) 153 t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc) 156 t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc) 160 # Issue #24836: The timezone files are out of date (pre 2011k)
|
/third_party/musl/compat/time32/ |
H A D | ftime32.c | 9 short timezone, dstflag; member 22 tp->timezone = tb.timezone; in __ftime32()
|
/third_party/python/Lib/tomllib/ |
H A D | _re.py | 7 from datetime import date, datetime, time, timedelta, timezone, tzinfo namespace 81 tz = timezone.utc 88 def cached_tz(hour_str: str, minute_str: str, sign_str: str) -> timezone: 90 return timezone(
|
/third_party/icu/icu4c/source/tools/tzcode/ |
H A D | icuzdump.cpp | 18 * This tool write out timezone transitions for ICU timezone. This tool 19 * is used as a part of tzdata update process to check if ICU timezone 31 #include "unicode/timezone.h" 120 timezone = tz; in setTimeZone() 140 timezone->getOffset(t, false, rawOffset, dstOffset, status); in dump() 145 timezone->getOffset(newt, false, newRawOffset, newDstOffset, status); in dump() 161 timezone->getOffset(medt, false, medRawOffset, medDstOffset, status); in dump() 195 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEnglish(), status); in getCutOverTimes() 203 TimeZone* timezone; member in ICUZDump [all...] |
/third_party/skia/third_party/externals/icu/source/tools/tzcode/ |
H A D | icuzdump.cpp | 18 * This tool write out timezone transitions for ICU timezone. This tool 19 * is used as a part of tzdata update process to check if ICU timezone 31 #include "unicode/timezone.h" 120 timezone = tz; in setTimeZone() 140 timezone->getOffset(t, false, rawOffset, dstOffset, status); in dump() 145 timezone->getOffset(newt, false, newRawOffset, newDstOffset, status); in dump() 161 timezone->getOffset(medt, false, medRawOffset, medDstOffset, status); in dump() 195 GregorianCalendar* gcal = new GregorianCalendar(timezone, Locale::getEnglish(), status); in getCutOverTimes() 203 TimeZone* timezone; member in ICUZDump [all...] |
/third_party/libwebsockets/win32port/win32helpers/ |
H A D | gettimeofday.h | 17 struct timezone struct 26 int gettimeofday(struct timeval *tv, struct timezone *tz);
|
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/ |
H A D | time_timezone_test.cpp | 13 * @tc.desc: Test the functionality of the clock_gettime function and the timezone field of the timeb structure. 21 tp.timezone = tp.dstflag; in HWTEST_F() 22 EXPECT_EQ(0, tp.timezone); in HWTEST_F()
|
/third_party/toybox/toys/other/ |
H A D | hwclock.c | 21 -t Set the system time based on the current timezone (--systz) 61 struct timezone tzone; in hwclock_main() 116 tzone.tz_minuteswest = timezone / 60 - 60 * daylight; in hwclock_main() 120 // Adjust seconds for timezone and daylight saving time in hwclock_main() 121 // extern long timezone is defined in header sys/time.h in hwclock_main() 122 tzone.tz_minuteswest = timezone / 60; in hwclock_main()
|
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | well_known_types.py | 153 'Failed to parse timestamp: missing valid timezone offset.') 178 # Parse timezone offsets. 184 timezone = value[timezone_offset:] 185 pos = timezone.find(':') 188 'Invalid timezone offset value: {0}.'.format(timezone)) 189 if timezone[0] == '+': 190 seconds -= (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60 192 seconds += (int(timezone[ [all...] |
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/ |
H A D | tzdst.c | 51 long int timezone; variable 177 timezone = hour * 3600 + minute * 60 + second; in settimezone() 179 timezone = -timezone; in settimezone() 626 dstStart += timezone; in dst_inquire() 627 dstEnd += timezone; in dst_inquire()
|
/third_party/python/Tools/scripts/ |
H A D | diff.py | 12 from datetime import datetime, timezone namespace 16 timezone.utc)
|
/third_party/python/Lib/ |
H A D | _strptime.py | 21 timezone as datetime_timezone) 44 timezone -- daylight- and non-daylight-savings timezone representation 64 Only other possible issue is if someone changed the timezone and did 66 since changing the timezone is worthless without that call. 78 raise ValueError("timezone changed during initialization") 128 replacement_pairs.extend([(tz, "%Z") for tz_values in self.timezone 136 # strings (e.g., MacOS 9 having timezone as ('','')). 153 # Set self.timezone by using time.tzname. 167 self.timezone [all...] |
/third_party/tzdata/ |
H A D | private.h | 177 If defining the 'timezone' variable, avoid a clash with FreeBSD's 178 'timezone' function by renaming its declaration. */ 184 # define timezone sys_timezone macro 195 # undef timezone macro 668 # undef timezone macro 669 # define timezone tz_timezone macro 736 extern long timezone;
|
/third_party/musl/porting/liteos_m_iccarm/kernel/include/sys/ |
H A D | time.h | 27 struct timezone { struct 34 int settimeofday(const struct timeval *, const struct timezone *);
|
/third_party/musl/porting/uniproton/kernel/include/sys/ |
H A D | time.h | 27 struct timezone { struct 34 int settimeofday(const struct timeval *, const struct timezone *);
|
/third_party/musl/porting/liteos_m/kernel/include/sys/ |
H A D | time.h | 27 struct timezone { struct 34 int settimeofday(const struct timeval *, const struct timezone *);
|
/third_party/musl/include/sys/ |
H A D | time.h | 27 struct timezone { struct 34 int settimeofday(const struct timeval *, const struct timezone *);
|
/third_party/libphonenumber/java/geocoder/test/com/google/i18n/phonenumbers/ |
H A D | PhoneNumberToTimeZonesMapperTest.java | 68 for (String timezone : timezones) { in buildListOfTimeZones() 69 timezonesList.add(timezone); in buildListOfTimeZones()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/ |
H A D | GlobalizationPreferences.java | 36 * <li>A timezone</li> 154 * for the appropriate territory, currency, timezone, etc. The 329 * currency and timezone values will be set from this. The user 419 * Sets the timezone ID. If this has not been set, uses default for territory. 421 * @param timezone a valid TZID (see UTS#35). 425 public GlobalizationPreferences setTimeZone(TimeZone timezone) { in setTimeZone() argument 429 this.timezone = (TimeZone) timezone.clone(); // clone for safety; in setTimeZone() 434 * Get the timezone. It was either explicitly set, or is 437 * @return timezone, eithe 1126 private TimeZone timezone; global() field in GlobalizationPreferences [all...] |
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/ |
H A D | GlobalizationPreferences.java | 37 * <li>A timezone</li> 156 * for the appropriate territory, currency, timezone, etc. The 331 * currency and timezone values will be set from this. The user 421 * Sets the timezone ID. If this has not been set, uses default for territory. 423 * @param timezone a valid TZID (see UTS#35). 427 public GlobalizationPreferences setTimeZone(TimeZone timezone) { in setTimeZone() argument 431 this.timezone = (TimeZone) timezone.clone(); // clone for safety; in setTimeZone() 436 * Get the timezone. It was either explicitly set, or is 439 * @return timezone, eithe 1128 private TimeZone timezone; global() field in GlobalizationPreferences [all...] |