/external/python/dateutil/dateutil/test/ |
D | test_tz.py | 162 return dt.tzname(), dt.utcoffset(), dt.dst() 180 def gettz(self, tzname): argument 183 def _get_tzname(self, tzname): argument 184 return tzname 186 def _gettz_context(self, tzname): argument 191 tzname = self._get_tzname('Australia/Sydney') 193 with self._gettz_context(tzname): 194 SYD = self.gettz(tzname) 213 tzname = self._get_tzname('Australia/Sydney') 215 with self._gettz_context(tzname): [all …]
|
D | _common.py | 197 def set_current_tz(self, tzname): argument 198 p = subprocess.Popen('tzutil /s "' + tzname + '"')
|
/external/compiler-rt/test/msan/ |
D | tzset.cc | 7 extern char *tzname[2]; 10 if (!strlen(tzname[0]) || !strlen(tzname[1])) in main() 13 if (!strlen(tzname[0]) || !strlen(tzname[1])) in main()
|
/external/python/dateutil/dateutil/parser/ |
D | _parser.py | 381 if res.tzoffset == 0 and not res.tzname or res.tzname == 'Z': 382 res.tzname = "UTC" 384 elif res.tzoffset != 0 and res.tzname and self.utczone(res.tzname): 754 elif self._could_be_tzname(res.hour, res.tzname, res.tzoffset, l[i]): 755 res.tzname = l[i] 756 res.tzoffset = info.tzoffset(res.tzname) 766 if info.utczone(res.tzname): 769 res.tzname = None 800 self._could_be_tzname(res.hour, res.tzname, 803 res.tzname = l[i + 4] [all …]
|
/external/python/cpython3/Lib/ |
D | _strptime.py | 77 if time.tzname != self.tzname or time.daylight != self.daylight: 169 self.tzname = time.tzname 171 no_saving = frozenset({"utc", "gmt", self.tzname[0].lower()}) 173 has_saving = frozenset({self.tzname[1].lower()}) 332 time.tzname != locale_time.tzname or 489 if (time.tzname[0] == time.tzname[1] and 556 tzname = found_dict.get("Z") 566 weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction 578 tzname, gmtoff = tt[-2:] 582 if tzname: [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_time.py | 22 time.tzname 241 self.assertEqual(time.tzname, ('EST', 'EDT')) 242 self.assertEqual(len(time.tzname), 2) 247 self.assertEqual(len(time.tzname), 2) 258 self.assertIn(time.tzname[0], ('AEST' 'EST'), time.tzname[0]) 259 self.assertTrue(time.tzname[1] == 'AEDT', str(time.tzname[1])) 260 self.assertEqual(len(time.tzname), 2)
|
D | test_strptime.py | 303 if time.tzname[0] != time.tzname[1] or not time.daylight: 315 tz_name = time.tzname[0] 322 time.tzname = (tz_name, tz_name) 328 (time.tzname, tz_value, time.daylight, tz_name)) 586 oldtzname = time.tzname 587 tm = _strptime._strptime_time(time.tzname[0], '%Z') 589 tm = _strptime._strptime_time(time.tzname[1], '%Z') 596 tm = _strptime._strptime_time(time.tzname[0], '%Z') 598 tm = _strptime._strptime_time(time.tzname[1], '%Z')
|
D | test_datetime.py | 56 def tzname(self, dt): member in FixedOffset 73 self.assertRaises(NotImplementedError, useless.tzname, dt) 87 self.assertRaises(NotImplementedError, ne.tzname, dt) 96 self.assertEqual(fo.tzname(dt), "Three") 117 self.assertEqual(orig.tzname(None), 'cookie') 124 self.assertEqual(derived.tzname(None), 'cookie') 1310 def tzname(self, dt): member in TestDateTime.test_strftime_with_bad_tzname_replace.MyTzInfo 2043 def tzname(self, dt): return dt and "real" or "none" member in TZInfoBase.test_argument_passing.introspective 2051 self.assertEqual(obj.tzname(), expected) 2106 def tzname(self, dt): return None member in TZInfoBase.test_tzinfo_classes.C1 [all …]
|
D | test_strftime.py | 47 if now[8]: self.tz = time.tzname[1] 48 else: self.tz = time.tzname[0]
|
/external/python/cpython2/Lib/ |
D | _strptime.py | 78 if time.tzname != self.tzname or time.daylight != self.daylight: 170 self.tzname = time.tzname 172 no_saving = frozenset(["utc", "gmt", self.tzname[0].lower()]) 174 has_saving = frozenset([self.tzname[1].lower()]) 305 time.tzname != locale_time.tzname or 430 if (time.tzname[0] == time.tzname[1] and
|
/external/python/cpython2/Doc/includes/ |
D | tzinfo-examples.py | 14 def tzname(self, dt): member in UTC 36 def tzname(self, dt): member in FixedOffset 68 def tzname(self, dt): member in LocalTimezone 69 return _time.tzname[self._isdst(dt)] 127 def tzname(self, dt): member in USTimeZone
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | VTimeZone.java | 546 String tzname = null; // current zone name in parse() local 591 tzname = null; in parse() 609 tzname = value; in parse() 647 if (tzname == null) { in parse() 648 tzname = getDefaultTZName(tzid, dst); in parse() 684 … rule = createRuleByRRULE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse() 686 … rule = createRuleByRDATE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse() 832 private static TimeZoneRule createRuleByRRULE(String tzname, in createRuleByRRULE() argument 1017 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE() 1190 private static TimeZoneRule createRuleByRDATE(String tzname, in createRuleByRDATE() argument [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | VTimeZone.java | 577 String tzname = null; // current zone name in parse() local 622 tzname = null; in parse() 640 tzname = value; in parse() 678 if (tzname == null) { in parse() 679 tzname = getDefaultTZName(tzid, dst); in parse() 715 … rule = createRuleByRRULE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse() 717 … rule = createRuleByRDATE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse() 863 private static TimeZoneRule createRuleByRRULE(String tzname, in createRuleByRRULE() argument 1048 return new AnnualTimeZoneRule(tzname, rawOffset, dstSavings, adtr, startYear, endYear); in createRuleByRRULE() 1221 private static TimeZoneRule createRuleByRDATE(String tzname, in createRuleByRDATE() argument [all …]
|
/external/python/dateutil/dateutil/tz/ |
D | tz.py | 76 def tzname(self, dt): member in tzutc 149 def tzname(self, dt): member in tzoffset 204 self._tznames = tuple(time.tzname) 225 def tzname(self, dt): member in tzlocal 781 def tzname(self, dt): member in tzfile 1090 tzname=None, rrule=None): argument 1095 self.tzname = tzname 1176 def tzname(self, dt): member in _tzicalvtz 1177 return self._find_comp(dt).tzname 1304 tzname = None [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_time.py | 59 time.tzname 359 self.assertEqual(time.tzname, ('EST', 'EDT')) 360 self.assertEqual(len(time.tzname), 2) 365 self.assertEqual(len(time.tzname), 2) 378 self.assertIn(time.tzname[0], ('AEST' 'EST'), time.tzname[0]) 379 self.assertTrue(time.tzname[1] in ('AEDT', 'EDT'), str(time.tzname[1])) 380 self.assertEqual(len(time.tzname), 2) 451 tzname = time.strftime('%Z', tt) 452 self.assertNotEqual(tzname, 'LMT') 457 self.assertEqual(time.strftime('%Z', tt), tzname) [all …]
|
D | test_strptime.py | 381 if time.tzname[0] != time.tzname[1] or not time.daylight: 393 tz_name = time.tzname[0] 400 time.tzname = (tz_name, tz_name) 406 (time.tzname, tz_value, time.daylight, tz_name)) 698 oldtzname = time.tzname 699 tm = _strptime._strptime_time(time.tzname[0], '%Z') 701 tm = _strptime._strptime_time(time.tzname[1], '%Z') 708 tm = _strptime._strptime_time(time.tzname[0], '%Z') 710 tm = _strptime._strptime_time(time.tzname[1], '%Z')
|
D | datetimetester.py | 123 def tzname(self, dt): member in FixedOffset 154 self.assertRaises(NotImplementedError, useless.tzname, dt) 168 self.assertRaises(NotImplementedError, ne.tzname, dt) 177 self.assertEqual(fo.tzname(dt), "Three") 199 oname = orig.tzname(None) 203 self.assertEqual(orig.tzname(None), oname) 210 self.assertEqual(derived.tzname(None), oname) 226 def tzname(self, dt): member in TestTZInfo.test_issue23600.UKSummerTime 245 self.assertEqual(str(tz), tz.tzname(None)) 301 self.assertEqual('UTC', timezone.utc.tzname(None)) [all …]
|
D | test_strftime.py | 45 if now[8]: self.tz = time.tzname[1] 46 else: self.tz = time.tzname[0]
|
/external/python/cpython3/Doc/includes/ |
D | tzinfo_examples.py | 45 def tzname(self, dt): member in LocalTimezone 46 return _time.tzname[self._isdst(dt)] 121 def tzname(self, dt): member in USTimeZone
|
/external/python/dateutil/docs/ |
D | examples.rst | 1207 >>> datetime.now(tzutc()).tzname() 1224 >>> datetime.now(tzoffset("BRST", -10800)).tzname() 1244 >>> datetime.now(tzlocal()).tzname() 1323 >>> datetime(2003, 4, 6, 1, 59, tzinfo=tz).tzname() 1325 >>> datetime(2003, 4, 6, 2, 00, tzinfo=tz).tzname() 1327 >>> datetime(2003, 10, 26, 0, 59, tzinfo=tz).tzname() 1329 >>> datetime(2003, 10, 26, 2, 00, tzinfo=tz).tzname() 1387 >>> datetime.now(tz).tzname() 1389 >>> datetime(2003, 1, 1, tzinfo=tz).tzname() 1398 >>> datetime(2003, 4, 6, 1, 59, tzinfo=tz).tzname() [all …]
|
/external/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/ |
D | 35-3-buildonly.c | 19 printf("%s\n", tzname[0]); in dummyfcn()
|
/external/v8/src/base/platform/ |
D | platform-solaris.cc | 50 return tzname[0]; // The location of the timezone string on Solaris. in LocalTimezone()
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_utils.py | 136 self.assertEqual(t1.tzname(), 'MSK') 139 self.assertEqual(t1.tzname(), 'EET')
|
/external/fonttools/Lib/fontTools/ufoLib/ |
D | utils.py | 27 def tzname(self, dt): member in UTC
|
/external/icu/icu4c/source/tools/tzcode/ |
D | localtime.c | 203 char * tzname[2] = { variable 257 tzname[0] = tzname[1] = (char *) wildabbr; in settzname() 266 tzname[0] = tzname[1] = (char *) gmt; in settzname() 275 tzname[ttisp->tt_isdst] = &sp->chars[ttisp->tt_abbrind]; in settzname() 282 tzname[ttisp->tt_isdst] = in settzname() 1324 tzname[tmp->tm_isdst] = &sp->chars[ttisp->tt_abbrind]; in localsub()
|