Home
last modified time | relevance | path

Searched refs:gmtoff (Results 1 – 12 of 12) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTime.java68 time.gmtoff = other.gmtoff; in set()
78 protected static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument
79 long offsetMillis = gmtoff * 1000; in getJulianDay()
95 int approximateDay = getJulianDay(millis, time.gmtoff); in setJulianDay()
138 time.gmtoff = 0; in set()
161 time.gmtoff = 0; in clear()
173 long gmtoff = TimeZone.getTimeZone(timezone).getOffset(date); in switchTimezone() local
174 set(date + gmtoff); in switchTimezone()
176 time.gmtoff = (gmtoff / 1000); in switchTimezone()
245 String sign = (time.gmtoff < 0) ? "-" : "+"; in format3339()
[all …]
/external/python/cpython3/Lib/
D_strptime.py368 gmtoff = None
460 gmtoff = 0
472 gmtoff = (hours * 60 * 60) + (minutes * 60) + seconds
478 gmtoff = -gmtoff
566 weekday, julian, tz, tzname, gmtoff), fraction, gmtoff_fraction
578 tzname, gmtoff = tt[-2:]
580 if gmtoff is not None:
581 tzdelta = datetime_timedelta(seconds=gmtoff, microseconds=gmtoff_fraction)
Dimaplib.py1486 gmtoff = date_time.tm_gmtoff
1492 gmtoff = -(time.timezone, time.altzone)[dst]
1494 gmtoff = -time.timezone
1495 delta = timedelta(seconds=gmtoff)
Ddatetime.py1803 gmtoff = localtm.tm_gmtoff
1810 tz = timezone(timedelta(seconds=gmtoff), zone)
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTimeTest.java119 assertEquals(0, t.gmtoff); in shouldClear()
141 assertThat(t.gmtoff).isEqualTo(0); in shouldSwitchTimeZones()
147 assertThat(t.gmtoff).isEqualTo(-14400L); in shouldSwitchTimeZones()
406 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay()
414 int day = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay()
428 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay()
436 int day = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay()
/external/icu/icu4c/source/tools/tzcode/
Dzic.c143 static int addtype(const zic_t gmtoff, const zic_t rawoff, const zic_t dstoff,
147 static int addtype(zic_t gmtoff, const char * abbr, int isdst,
2022 const zic_t gmtoff) in stringrule() argument
2071 tod += gmtoff; in stringrule()
2224 register zic_t gmtoff; in outzone() local
2364 gmtoff = zp->z_gmtoff; in outzone()
2501 -gmtoff); in outzone()
2517 offset = rp->r_todisgmt ? 0 : gmtoff; in outzone()
2631 starttime = tadd(starttime, -gmtoff); in outzone()
2707 addtype(const zic_t gmtoff, const zic_t rawoff, const zic_t dstoff, char *const abbr, const int isd… in addtype() argument
[all …]
/external/python/cpython3/Lib/email/
Dutils.py371 gmtoff = -(time.altzone if dst else time.timezone)
372 if delta == datetime.timedelta(seconds=gmtoff):
/external/python/cpython3/Modules/
Dtimemodule.c417 , const char *zone, time_t gmtoff in tmtotuple() argument
443 PyStructSequence_SET_ITEM(v, 10, _PyLong_FromTime_t(gmtoff)); in tmtotuple()
535 time_t gmtoff; in time_localtime() local
537 gmtoff = timegm(&buf) - when; in time_localtime()
538 return tmtotuple(&local, zone, gmtoff); in time_localtime()
/external/python/dateutil/dateutil/tz/
Dtz.py552 gmtoff, isdst, abbrind = ttinfo[i]
556 gmtoff = 60 * ((gmtoff + 30) // 60)
558 tti.offset = gmtoff
560 tti.delta = datetime.timedelta(seconds=gmtoff)
/external/cldr/tools/java/org/unicode/cldr/util/data/
Dafrica244 # > 23:59:59 2009 EET isdst=0 gmtoff=7200
247 # > 01:00:00 2009 EEST isdst=1 gmtoff=10800
250 # > 23:59:59 2009 EEST isdst=1 gmtoff=10800
253 # > 23:00:00 2009 EET isdst=0 gmtoff=7200
Dnorthamerica605 # They will be gmtoff=-28800 year-round.
/external/python/cpython3/Lib/test/
Ddatetimetester.py5381 for i, (gmtoff, isdst, abbrind) in enumerate(ttis):
5383 ttis[i] = (timedelta(0, gmtoff), isdst, abbr)