Home
last modified time | relevance | path

Searched refs:tzname (Results 1 - 25 of 58) sorted by relevance

123

/third_party/python/Lib/
H A D_strptime.py77 if time.tzname != self.tzname or time.daylight != self.daylight:
153 # Set self.timezone by using time.tzname.
154 # Do not worry about possibility of time.tzname[0] == time.tzname[1]
160 self.tzname = time.tzname
162 no_saving = frozenset({"utc", "gmt", self.tzname[0].lower()})
164 has_saving = frozenset({self.tzname[1].lower()})
323 time.tzname !
[all...]
/third_party/python/Lib/zoneinfo/
H A D_zoneinfo.py111 def tzname(self, dt): member in ZoneInfo
112 return self._find_trans(dt).tzname
240 _load_timedelta(utcoffset), _load_timedelta(dstoffset), tzname
242 for utcoffset, dstoffset, tzname in zip(utcoff, dstoff, abbr)
273 # of the utcoffset, dst and tzname functions does not depend on the
397 __slots__ = ["utcoff", "dstoff", "tzname"]
399 def __init__(self, utcoff, dstoff, tzname):
402 self.tzname = tzname
408 and self.tzname
[all...]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
H A DVTimeZone.java575 String tzname = null; // current zone name in parse()
620 tzname = null; in parse()
638 tzname = value; in parse()
675 // if tzname is not available, create one from tzid in parse()
676 if (tzname == null) { in parse()
677 tzname = getDefaultTZName(tzid, dst); in parse()
713 rule = createRuleByRRULE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse()
715 rule = createRuleByRDATE(tzname, rawOffset, dstSavings, start, dates, fromOffset); in parse()
861 private static TimeZoneRule createRuleByRRULE(String tzname, in createRuleByRRULE() argument
1046 return new AnnualTimeZoneRule(tzname, rawOffse in createRuleByRRULE()
1219 createRuleByRDATE(String tzname, int rawOffset, int dstSavings, long start, List<String> dates, int fromOffset) createRuleByRDATE() argument
1526 writeZonePropsByTime(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, long time, boolean withRDATE) writeZonePropsByTime() argument
1541 writeZonePropsByDOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, long startTime, long untilTime) writeZonePropsByDOM() argument
1561 writeZonePropsByDOW(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int weekInMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW() argument
1582 writeZonePropsByDOW_GEQ_DOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW_GEQ_DOM() argument
1665 writeZonePropsByDOW_LEQ_DOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW_LEQ_DOM() argument
1803 beginZoneProps(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, long startTime) beginZoneProps() argument
[all...]
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/util/
H A DVTimeZone.java546 String tzname = null; // current zone name in parse()
591 tzname = null; in parse()
609 tzname = value; in parse()
646 // if tzname is not available, create one from tzid 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, rawOffse in createRuleByRRULE()
1190 createRuleByRDATE(String tzname, int rawOffset, int dstSavings, long start, List<String> dates, int fromOffset) createRuleByRDATE() argument
1497 writeZonePropsByTime(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, long time, boolean withRDATE) writeZonePropsByTime() argument
1512 writeZonePropsByDOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, long startTime, long untilTime) writeZonePropsByDOM() argument
1532 writeZonePropsByDOW(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int weekInMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW() argument
1553 writeZonePropsByDOW_GEQ_DOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW_GEQ_DOM() argument
1636 writeZonePropsByDOW_LEQ_DOM(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, int month, int dayOfMonth, int dayOfWeek, long startTime, long untilTime) writeZonePropsByDOW_LEQ_DOM() argument
1774 beginZoneProps(Writer writer, boolean isDst, String tzname, int fromOffset, int toOffset, long startTime) beginZoneProps() argument
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/time/time_gtest/
H A Dtime_tzname_test.cpp12 * @tc.desc: Test the tzname array, which should contain the names of the local time zone and the
24 EXPECT_TRUE(tzname[0]); in HWTEST_F()
25 EXPECT_TRUE(tzname[1]); in HWTEST_F()
/third_party/python/Lib/test/test_zoneinfo/
H A Dtest_zoneinfo.py277 self.assertEqual(dt.tzname(), "UTC")
304 self.assertEqual(dt.tzname(), offset.tzname, dt)
359 self.assertEqual(dt.tzname(), offset.tzname, dt)
388 self.assertIs(t.tzname(), None)
399 self.assertEqual(t.tzname(), offset.tzname)
565 self.assertEqual(dt.tzname(), offset.tzname)
[all...]
/third_party/python/Lib/test/
H A Dtest_strptime.py390 if time.tzname[0] != time.tzname[1] or not time.daylight:
404 # when time.tzname[0] == time.tzname[1] and time.daylight
405 tz_name = time.tzname[0]
409 with support.swap_attr(time, 'tzname', (tz_name, tz_name)), \
412 time.tzname = (tz_name, tz_name)
418 (time.tzname, tz_value, time.daylight, tz_name))
713 oldtzname = time.tzname
714 tm = _strptime._strptime_time(time.tzname[
[all...]
H A Dtest_time.py64 time.tzname
373 self.assertEqual(time.tzname, ('EST', 'EDT'))
374 self.assertEqual(len(time.tzname), 2)
379 self.assertEqual(len(time.tzname), 2)
392 self.assertIn(time.tzname[0], ('AEST' 'EST'), time.tzname[0])
393 self.assertTrue(time.tzname[1] in ('AEDT', 'EDT'), str(time.tzname[1]))
394 self.assertEqual(len(time.tzname), 2)
458 tzname
[all...]
H A Ddatetimetester.py137 def tzname(self, dt): member in FixedOffset
168 self.assertRaises(NotImplementedError, useless.tzname, dt)
182 self.assertRaises(NotImplementedError, ne.tzname, dt)
191 self.assertEqual(fo.tzname(dt), "Three")
214 oname = orig.tzname(None)
218 self.assertEqual(orig.tzname(None), oname)
225 self.assertEqual(derived.tzname(None), oname)
242 def tzname(self, dt): member in TestTZInfo.test_issue23600.UKSummerTime
261 self.assertEqual(str(tz), tz.tzname(None))
317 self.assertEqual('UTC', timezone.utc.tzname(Non
2181 def tzname(self, dt): global() member in TestDateTime.test_strftime_with_bad_tzname_replace.MyTzInfo
3708 def tzname(self, dt): return dt and "real" or "none" global() member in TZInfoBase.test_argument_passing.introspective
3771 def tzname(self, dt): return None global() member in TZInfoBase.test_tzinfo_classes.C1
3782 def tzname(self, dt): return "aname" global() member in TZInfoBase.test_tzinfo_classes.C3
3792 def tzname(self, dt): return 0 global() member in TZInfoBase.test_tzinfo_classes.C4
3951 def tzname(self, dt): return self.tz global() member in TestTimeTZ.test_zones.Badtzname
5063 def tzname(self, dt): global() member in USTimeZone
5484 def tzname(self, dt): global() member in USTimeZone2
5568 def tzname(self, dt): global() member in Europe_Vilnius_1941
5994 def tzname(self, dt): global() member in ZoneInfo
[all...]
H A Dtest_strftime.py45 if now[8]: self.tz = time.tzname[1]
46 else: self.tz = time.tzname[0]
/third_party/python/Doc/includes/
H A Dtzinfo_examples.py45 def tzname(self, dt): member in LocalTimezone
46 return _time.tzname[self._isdst(dt)]
121 def tzname(self, dt): member in USTimeZone
/third_party/python/Modules/
H A D_zoneinfo.c26 PyObject *tzname; member
142 build_ttinfo(long utcoffset, long dstoffset, PyObject *tzname, _ttinfo *out);
491 Py_INCREF(tti->tzname); in zoneinfo_tzname()
492 return tti->tzname; in zoneinfo_tzname()
767 build_ttinfo(long utcoffset, long dstoffset, PyObject *tzname, _ttinfo *out) in build_ttinfo() argument
771 out->tzname = NULL; in build_ttinfo()
784 out->tzname = tzname; in build_ttinfo()
785 Py_INCREF(tzname); in build_ttinfo()
797 Py_XDECREF(ttinfo->tzname); in xdecref_ttinfo()
1006 PyObject *tzname = PyTuple_GetItem(abbr, i); load_data() local
[all...]
H A Dtimemodule.c49 # define _Py_tzname tzname
623 else if (tzname[0] && strcmp(p->tm_zone, tzname[0]) == 0) {
624 p->tm_zone = tzname[0];
626 else if (tzname[1] && strcmp(p->tm_zone, tzname[1]) == 0) {
627 p->tm_zone = tzname[1];
1105 /* Reset timezone, altzone, daylight and tzname */
1782 PyModule_AddObject(m, "tzname", tzname_obj);
1828 PyModule_AddObject(m, "tzname", tzname_ob
[all...]
/third_party/tzdata/
H A Dtzselect.ksh470 tzname = ("(<[[:alnum:]+-][[:alnum:]+-][[:alnum:]+-]+>" \
479 tzpattern = ("^(:.*|" tzname offset "(" tzname \
H A Dprivate.h662 # undef tzname macro
663 # define tzname tz_tzname macro
733 extern char *tzname[];
/third_party/ltp/testcases/open_posix_testsuite/conformance/definitions/time_h/
H A D35-3-buildonly.c9 Test that tzname is declared.
19 printf("%s\n", tzname[0]); in dummyfcn()
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dtime_zone_libc.cc54 // Uses the globals: 'timezone', 'altzone' and 'tzname'.
59 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
61 return tzname[is_dst];
65 // Uses the globals: 'timezone' and 'tzname'.
70 auto tm_zone(const std::tm& tm) -> decltype(tzname[0]) {
72 return tzname[is_dst];
/third_party/node/deps/v8/src/base/platform/
H A Dplatform-solaris.cc50 return tzname[0]; // The location of the timezone string on Solaris. in LocalTimezone()
/third_party/python/Lib/test/test_email/
H A Dtest_utils.py155 self.assertEqual(t1.tzname(), 'MSK')
158 self.assertEqual(t1.tzname(), 'EET')
/third_party/icu/icu4c/source/tools/tzcode/
H A Dlocaltime.c46 ** 1. They might reference tzname[0] before calling tzset (explicitly
48 ** 2. They might reference tzname[1] before calling tzset (explicitly
50 ** 3. They might reference tzname[1] after setting to a time zone
52 ** 4. They might reference tzname[0] after setting to a time zone
57 ** WILDABBR is used. Another possibility: initialize tzname[0] to the
58 ** string "tzname[0] used before set", and similarly for the other cases.
59 ** And another: initialize tzname[0] to "ERA", with an explanation in the
61 ** that tzname[0] has the "normal" length of three characters).
205 char * tzname[2] = { variable
259 tzname[ in settzname()
[all...]
/third_party/skia/third_party/externals/icu/source/tools/tzcode/
H A Dlocaltime.c44 ** 1. They might reference tzname[0] before calling tzset (explicitly
46 ** 2. They might reference tzname[1] before calling tzset (explicitly
48 ** 3. They might reference tzname[1] after setting to a time zone
50 ** 4. They might reference tzname[0] after setting to a time zone
55 ** WILDABBR is used. Another possibility: initialize tzname[0] to the
56 ** string "tzname[0] used before set", and similarly for the other cases.
57 ** And another: initialize tzname[0] to "ERA", with an explanation in the
59 ** that tzname[0] has the "normal" length of three characters).
203 char * tzname[2] = { variable
257 tzname[ in settzname()
[all...]
/third_party/musl/porting/uniproton/kernel/include/
H A Dtime.h115 extern char *tzname[2];
/third_party/musl/porting/liteos_m/user/include/
H A Dtime.h114 extern char *tzname[2];
/third_party/musl/porting/liteos_m/kernel/include/
H A Dtime.h115 extern char *tzname[2];
/third_party/musl/libc-test/src/api/
H A Dtime.c72 {char **x = tzname;} in f()

Completed in 31 milliseconds

123