Home
last modified time | relevance | path

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

12345678910>>...12

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTime.java41 public 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 public void clear(String timezone) { in clear() argument
148 if (timezone == null) { in clear()
151 time.timezone = timezone; in clear()
171 public 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/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java30 public void __constructor__(String timezone) { in __constructor__() argument
31 if (timezone == null) { in __constructor__()
34 time.timezone = timezone; in __constructor__()
46 time.timezone = other.timezone; in set()
142 public void clear(String timezone) { in clear() argument
143 if (timezone == null) { in clear()
146 time.timezone = timezone; in clear()
195 tz = TimeZone.getTimeZone(time.timezone); in parse()
201 time.timezone = tz.getID(); in parse()
217 strftime.setTimeZone(TimeZone.getTimeZone(time.timezone)); in format()
[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/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DTimeTest.java25 assertNotNull(t.timezone); in shouldHaveNoArgsConstructor()
33 assertEquals(t.timezone, t2.timezone); in shouldHaveCopyConstructor()
48 assertEquals(t.timezone, t2.timezone); in shouldHaveSetTime()
81 assertEquals(t.timezone, "UTC"); in shouldHaveTimeZoneConstructor()
89 assertEquals("UTC", t.timezone); in shouldClear()
200 time.timezone = "Australia/Sydney"; in testGetJulianDay()
223 time.timezone = "Australia/Sydney"; in testSetJulianDay()
/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/Doc/library/
Demail.util.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)
95 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
98 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
104 t0 = datetime.datetime(1990, 1, 1, tzinfo = datetime.timezone.utc)
107 t2 = t2.replace(tzinfo = datetime.timezone(datetime.timedelta(hours=-5)))
132 t0 = datetime.datetime(1984, 1, 1, tzinfo=datetime.timezone.utc)
135 t0 = datetime.datetime(1994, 1, 1, tzinfo=datetime.timezone.utc)
/external/python/cpython3/Lib/email/
Dutils.py159 dt = datetime.datetime.fromtimestamp(timeval, datetime.timezone.utc)
176 if dt.tzinfo is None or dt.tzinfo != datetime.timezone.utc:
214 tzinfo=datetime.timezone(datetime.timedelta(seconds=tz)))
360 return datetime.datetime.now(datetime.timezone.utc).astimezone()
371 tz = datetime.timezone(delta, localtm.tm_zone)
377 gmtoff = -(time.altzone if dst else time.timezone)
379 tz = datetime.timezone(delta, time.tzname[dst])
381 tz = datetime.timezone(delta)
/external/dhcpcd-6.8.2/dhcpcd-hooks/
D15-timezone1 # Configure timezone
24 syslog warning "timezone directory not found"
30 syslog warning "no timezone definition for $new_tzdb_timezone"
35 syslog info "timezone changed to $new_tzdb_timezone"
/external/python/cpython3/Lib/test/
Ddatetimetester.py30 from datetime import timezone
191 (timezone, (offset,)),
192 (timezone, (offset, "EST"))]:
233 self.ACDT = timezone(timedelta(hours=9.5), 'ACDT')
234 self.EST = timezone(-timedelta(hours=5), 'EST')
238 for tz in [self.ACDT, self.EST, timezone.utc,
239 timezone.min, timezone.max]:
244 for tz in [self.ACDT, self.EST, timezone.utc,
245 timezone.min, timezone.max]:
252 self.assertEqual(timezone.utc.utcoffset(None), ZERO)
[all …]
Dtest_strptime.py73 timezone = time.strftime("%Z", self.time_tuple).lower()
74 if timezone:
75 self.assertTrue(timezone in self.LT_ins.timezone[0] or
76 timezone in self.LT_ins.timezone[1],
78 (timezone, self.LT_ins.timezone))
167 test_locale.timezone = (frozenset(), frozenset())
182 locale_time.timezone = (frozenset(("utc", "gmt",
/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/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
/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/syslinux/gpxe/src/include/sys/
Dtime.h13 struct timezone { struct
18 extern int gettimeofday ( struct timeval *tv, struct timezone *tz ); argument
/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/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/toybox/toys/other/
Dhwclock.c59 struct timezone tzone; in hwclock_main()
114 tzone.tz_minuteswest = timezone / 60 - 60 * daylight; in hwclock_main()
120 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.c51 typedef long (*gtod_t)(struct timeval *tv, struct timezone *tz);
159 static inline long sys_gtod(struct timeval *tv, struct timezone *tz) in sys_gtod()
195 const struct timezone *tz_sys, in check_gtod()
198 const struct timezone *tz_other) in check_gtod()
225 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/libvncserver/compat/msvc/sys/
Dtime.h26 struct timezone struct
32 static __inline int gettimeofday(struct timeval *tv, struct timezone *tz) in gettimeofday() argument

12345678910>>...12