Home
last modified time | relevance | path

Searched refs:timezone (Results 1 – 25 of 328) sorted by relevance

12345678910>>...14

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTime.java41 protected void __constructor__(String timezone) { in __constructor__() argument
42 if (timezone == null) { in __constructor__()
45 time.timezone = timezone; in __constructor__()
58 time.timezone = other.timezone; in set()
147 protected void clear(String timezone) { in clear() argument
148 if (timezone == null) { in clear()
151 time.timezone = timezone; in clear()
171 protected void switchTimezone(String timezone) { in switchTimezone() argument
173 long gmtoff = TimeZone.getTimeZone(timezone).getOffset(date); in switchTimezone()
175 time.timezone = timezone; in switchTimezone()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTimeTest.java46 assertNotNull(t.timezone); in shouldHaveNoArgsConstructor()
54 assertEquals(t.timezone, t2.timezone); in shouldHaveCopyConstructor()
69 assertEquals(t.timezone, t2.timezone); in shouldHaveSetTime()
102 assertEquals(t.timezone, "UTC"); in shouldHaveTimeZoneConstructor()
110 assertEquals("UTC", t.timezone); in shouldClear()
140 assertThat(t.timezone).isEqualTo("UTC"); in shouldSwitchTimeZones()
146 assertThat(t.timezone).isEqualTo("America/New_York"); in shouldSwitchTimeZones()
205 assertEquals(desc, "UTC", t.timezone); in shouldParseRfc3339()
216 assertEquals(desc, "UTC", t.timezone); in shouldParseRfc3339()
227 assertEquals(desc, "Europe/Berlin", t.timezone); in shouldParseRfc3339()
[all …]
/external/iptables/extensions/
Dlibxt_time.man38 Use the kernel timezone instead of UTC to determine whether a packet meets the
43 time source has no timezone information, such as the x86 CMOS RTC, UTC will be
45 correct system time and timezone to the kernel once it has the information.
47 Local time is a feature on top of the (timezone independent) system time. Each
49 variable. The kernel also has its own timezone offset variable. The TZ
54 kernel's timezone offset variable is used when it has to convert between
58 The caveat with the kernel timezone is that Linux distributions may ignore to
59 set the kernel timezone, and instead only set the system time. Even if a
60 particular distribution does set the timezone at boot, it is usually does not
61 keep the kernel timezone offset - which is what changes on DST - up to date.
[all …]
/external/python/cpython3/Lib/test/
Ddatetimetester.py31 from datetime import timezone
196 (timezone, (offset,)),
197 (timezone, (offset, "EST"))]:
238 self.ACDT = timezone(timedelta(hours=9.5), 'ACDT')
239 self.EST = timezone(-timedelta(hours=5), 'EST')
243 for tz in [self.ACDT, self.EST, timezone.utc,
244 timezone.min, timezone.max]:
249 for tz in [self.ACDT, self.EST, timezone.utc,
250 timezone.min, timezone.max]:
257 self.assertEqual(timezone.utc.utcoffset(None), ZERO)
[all …]
Dtest_strptime.py74 timezone = time.strftime("%Z", self.time_tuple).lower()
75 if timezone:
76 self.assertTrue(timezone in self.LT_ins.timezone[0] or
77 timezone in self.LT_ins.timezone[1],
79 (timezone, self.LT_ins.timezone))
168 test_locale.timezone = (frozenset(), frozenset())
183 locale_time.timezone = (frozenset(("utc", "gmt",
/external/python/cpython3/Doc/library/
Demail.utils.rst118 :func:`time.mktime`, and the tenth is the offset of the date's timezone from UTC
120 has no timezone, the last element of the tuple returned is ``None``. Note that
128 the input date has a timezone of ``-0000``, the ``datetime`` will be a naive
130 time in UTC but with no indication of the actual source timezone of the
131 message the date comes from. If the input date has any other valid timezone
133 corresponding a :class:`~datetime.timezone` :class:`~datetime.tzinfo`.
141 timestamp (seconds since the Epoch). If the timezone item in the
156 returns a date relative to the local timezone instead of UTC, properly taking
161 timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. This is
170 source timezone", and the conventional ``-0000`` is used for the timezone.
[all …]
/external/python/cpython3/Lib/test/test_email/
Dtest_utils.py15 tz = datetime.timezone(utcoffset)
29 tzinfo=datetime.timezone.utc)
97 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
100 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
106 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
109 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
134 t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)
137 t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)
/external/python/cpython3/Lib/email/
Dutils.py147 dt = datetime.datetime.fromtimestamp(timeval, datetime.timezone.utc)
164 if dt.tzinfo is None or dt.tzinfo != datetime.timezone.utc:
202 tzinfo=datetime.timezone(datetime.timedelta(seconds=tz)))
354 return datetime.datetime.now(datetime.timezone.utc).astimezone()
365 tz = datetime.timezone(delta, localtm.tm_zone)
371 gmtoff = -(time.altzone if dst else time.timezone)
373 tz = datetime.timezone(delta, time.tzname[dst])
375 tz = datetime.timezone(delta)
/external/linux-kselftest/tools/testing/selftests/timers/
Dset-tz.c30 struct timezone tz; in set_tz()
40 struct timezone tz; in get_tz_min()
50 struct timezone tz; in get_tz_dst()
/external/autotest/client/site_tests/policy_SystemTimezone/
Dcontrol17 - The proper timezone is set
18 - The timezone reported by the DATE function is correct
19 - When the timezone is not set, it is user adjustable
/external/python/cpython2/Lib/test/
Dtest_strptime.py74 timezone = time.strftime("%Z", self.time_tuple).lower()
75 if timezone:
76 self.assertTrue(timezone in self.LT_ins.timezone[0] or
77 timezone in self.LT_ins.timezone[1],
79 (timezone, self.LT_ins.timezone))
168 test_locale.timezone = (frozenset(), frozenset())
183 locale_time.timezone = (frozenset(("utc", "gmt",
/external/python/cpython2/Doc/library/
Demail.util.rst71 :func:`time.mktime`, and the tenth is the offset of the date's timezone from UTC
73 has no timezone, the last element of the tuple returned is ``None``. Note that
80 timestamp (seconds since the Epoch). If the timezone item in the
95 returns a date relative to the local timezone instead of UTC, properly taking
100 timezone as an ascii string ``GMT``, rather than a numeric ``-0000``. This is
162 .. [#] Note that the sign of the timezone offset is the opposite of the sign of the
163 ``time.timezone`` variable for the same timezone; the latter variable follows
Dtime.rst62 * DST is Daylight Saving Time, an adjustment of the timezone by (usually) one
122 The offset of the local DST timezone, in seconds west of UTC, if one is defined.
123 This is negative if the local DST timezone is east of UTC (as in Western Europe,
177 Nonzero if a DST timezone is defined.
452 .. data:: timezone
454 The offset of the local (non-DST) timezone, in seconds west of UTC (negative in
460 A tuple of two strings: the first is the name of the local non-DST timezone, the
461 second is the name of the local DST timezone. If no DST timezone is defined,
469 ``tzname`` (from the :envvar:`TZ` environment variable), ``timezone`` (non-DST
471 (to 0 if this timezone does not have any daylight saving time rules, or to
[all …]
/external/icu/icu4c/source/tools/tzcode/
Dicuzdump.cpp120 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
/external/libpcap/lbl/
Dos-ultrix4.h29 struct timezone;
31 int gettimeofday(struct timeval *, struct timezone *);
Dos-sunos4.h103 struct timezone;
105 int gettimeofday(struct timeval *, struct timezone *);
179 char *timezone(int, int);
/external/tcpdump/lbl/
Dos-ultrix4.h30 struct timezone;
32 int gettimeofday(struct timeval *, struct timezone *);
Dos-sunos4.h104 struct timezone;
106 int gettimeofday(struct timeval *, struct timezone *);
179 char *timezone(int, int);
/external/toybox/toys/other/
Dhwclock.c61 struct timezone tzone; in hwclock_main()
116 tzone.tz_minuteswest = timezone / 60 - 60 * daylight; in hwclock_main()
122 tzone.tz_minuteswest = timezone / 60; in hwclock_main()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_timezoneprovider.cpp26 m_tz.tzHour = static_cast<int8_t>(timezone / 3600 * -1); in CXFA_TimeZoneProvider()
28 static_cast<int8_t>((abs(static_cast<int>(timezone)) % 3600) / 60); in CXFA_TimeZoneProvider()
/external/linux-kselftest/tools/testing/selftests/x86/
Dtest_vsyscall.c54 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
164 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod()
200 const struct timezone *tz_sys, in check_gtod()
203 const struct timezone *tz_other) in check_gtod()
230 struct timezone tz_sys, tz_vdso, tz_vsys; in test_gtod()
/external/protobuf/python/google/protobuf/internal/
Dwell_known_types.py171 timezone = value[timezone_offset:]
172 pos = timezone.find(':')
175 'Invalid timezone offset value: {0}.'.format(timezone))
176 if timezone[0] == '+':
177 seconds -= (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
179 seconds += (int(timezone[1:pos])*60+int(timezone[pos+1:]))*60
/external/libtextclassifier/annotator/datetime/
Dparser_test.cc66 const std::string& timezone = "Europe/Zurich", in HasNoResult() argument
70 if (!parser_->Parse(text, 0, timezone, /*locales=*/"", ModeFlag_ANNOTATION, in HasNoResult()
82 const std::string& timezone = "Europe/Zurich", in ParsesCorrectly() argument
104 if (!parser_->Parse(text, 0, timezone, locales, ModeFlag_ANNOTATION, in ParsesCorrectly()
155 const std::string& timezone = "Europe/Zurich", in ParsesCorrectly() argument
160 expected_granularity, anchor_start_end, timezone, in ParsesCorrectly()
/external/autotest/tko/
Dutils_unittest.py13 timezone = datetime.timedelta(seconds=time.timezone)
14 utc_date = date + timezone
/external/robolectric/
DAndroid.mk49 system/timezone/output_data/iana/tzdata:$(intermediates.COMMON)/usr/share/zoneinfo/tzdata \
50 …system/timezone/output_data/android/tzlookup.xml:$(intermediates.COMMON)/usr/share/zoneinfo/tzlook…

12345678910>>...14