/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowTime.java | 68 time.gmtoff = other.gmtoff; in set() 78 public 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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowTime.java | 56 time.gmtoff = other.gmtoff; in set() 73 public static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument 74 long offsetMillis = gmtoff * 1000; in getJulianDay() 90 int approximateDay = getJulianDay(millis, time.gmtoff); in setJulianDay() 133 time.gmtoff = 0; in set() 156 time.gmtoff = 0; in clear() 234 String sign = (time.gmtoff < 0) ? "-" : "+"; in format3339() 235 int offset = (int) Math.abs(time.gmtoff); in format3339()
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | TimeTest.java | 98 assertEquals(0, t.gmtoff); in shouldClear() 204 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay() 212 int day = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay() 226 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay() 234 int day = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowTimeTest.java | 119 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/python/cpython3/Lib/ |
D | _strptime.py | 542 gmtoff = tzoffset * 60 544 gmtoff = None 554 weekday, julian, tz, tzname, gmtoff), fraction 566 tzname, gmtoff = tt[-2:] 568 if gmtoff is not None: 569 tzdelta = datetime_timedelta(seconds=gmtoff)
|
D | imaplib.py | 1478 gmtoff = date_time.tm_gmtoff 1484 gmtoff = -(time.timezone, time.altzone)[dst] 1486 gmtoff = -time.timezone 1487 delta = timedelta(seconds=gmtoff)
|
D | datetime.py | 1611 gmtoff = localtm.tm_gmtoff 1618 tz = timezone(timedelta(seconds=gmtoff), zone)
|
/external/icu/icu4c/source/tools/tzcode/ |
D | zic.c | 143 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/ |
D | utils.py | 377 gmtoff = -(time.altzone if dst else time.timezone) 378 if delta == datetime.timedelta(seconds=gmtoff):
|
/external/python/cpython3/Modules/ |
D | timemodule.c | 282 , const char *zone, int gmtoff in tmtotuple() argument 308 SET(10, gmtoff); in tmtotuple() 400 int gmtoff; in time_localtime() local 402 gmtoff = timegm(&buf) - when; in time_localtime() 403 return tmtotuple(&local, zone, gmtoff); in time_localtime()
|
/external/python/cpython3/Lib/test/ |
D | datetimetester.py | 4563 for i, (gmtoff, isdst, abbrind) in enumerate(ttis): 4565 ttis[i] = (timedelta(0, gmtoff), isdst, abbr)
|