Searched refs:tz (Results 1 – 11 of 11) sorted by relevance
123 __tzinfo_type *tz = __gettzinfo (); in _tzset_unlocked() local132 tz->__tzrule[0] = default_tzrule; in _tzset_unlocked()133 tz->__tzrule[1] = default_tzrule; in _tzset_unlocked()142 tz->__tzrule[0] = default_tzrule; in _tzset_unlocked()143 tz->__tzrule[1] = default_tzrule; in _tzset_unlocked()199 tz->__tzrule[0].offset = offset0; in _tzset_unlocked()217 tz->__tzrule[0].offset = offset0; in _tzset_unlocked()262 tz->__tzrule[i].ch = 'M'; in _tzset_unlocked()263 tz->__tzrule[i].m = m; in _tzset_unlocked()264 tz->__tzrule[i].n = w; in _tzset_unlocked()[all …]
19 __tzinfo_type *const tz = __gettzinfo (); in __tzcalc_limits() local24 tz->__tzyear = year; in __tzcalc_limits()35 if (tz->__tzrule[i].ch == 'J') in __tzcalc_limits()38 days = year_days + tz->__tzrule[i].d + in __tzcalc_limits()39 (isleap(year) && tz->__tzrule[i].d >= 60); in __tzcalc_limits()43 else if (tz->__tzrule[i].ch == 'D') in __tzcalc_limits()44 days = year_days + tz->__tzrule[i].d; in __tzcalc_limits()53 for (j = 1; j < tz->__tzrule[i].m; ++j) in __tzcalc_limits()58 wday_diff = tz->__tzrule[i].d - m_wday; in __tzcalc_limits()61 m_day = (tz->__tzrule[i].n - 1) * DAYSPERWEEK + wday_diff; in __tzcalc_limits()[all …]
41 __tzinfo_type *const tz = __gettzinfo (); in localtime_r() local53 if (year == tz->__tzyear || __tzcalc_limits (year)) in localtime_r()54 res->tm_isdst = (tz->__tznorth in localtime_r()55 ? (*tim_p >= tz->__tzrule[0].change in localtime_r()56 && *tim_p < tz->__tzrule[1].change) in localtime_r()57 : (*tim_p >= tz->__tzrule[0].change in localtime_r()58 || *tim_p < tz->__tzrule[1].change)); in localtime_r()66 ? tz->__tzrule[1].offset in localtime_r()67 : tz->__tzrule[0].offset); in localtime_r()
237 __tzinfo_type *tz; in mktime() local246 tz = __gettzinfo (); in mktime()260 if (y == tz->__tzyear || __tzcalc_limits (y)) in mktime()264 time_t startdst_dst = tz->__tzrule[0].change in mktime()265 - (time_t) tz->__tzrule[1].offset; in mktime()266 time_t startstd_dst = tz->__tzrule[1].change in mktime()267 - (time_t) tz->__tzrule[1].offset; in mktime()268 time_t startstd_std = tz->__tzrule[1].change in mktime()269 - (time_t) tz->__tzrule[0].offset; in mktime()275 isdst = (tz->__tznorth in mktime()[all …]
1150 __tzinfo_type *tz = __gettzinfo (); in __strftime() local1154 offset = -tz->__tzrule[tim_p->tm_isdst > 0].offset; in __strftime()1385 __tzinfo_type *tz = __gettzinfo (); in __strftime() local1389 offset = -tz->__tzrule[tim_p->tm_isdst > 0].offset; in __strftime()1865 __tzinfo_type *tz = __gettzinfo (); in main() local1869 printf("tz->__tzrule[0].offset=%d, tz->__tzrule[1].offset=%d\n", tz->__tzrule[0].offset, tz->__tzru… in main()
40 gettimeofday(struct timeval *restrict tv, void *restrict tz) in gettimeofday() argument49 (void) tz; in gettimeofday()
45 int gettimeofday(struct timeval *restrict tv, void *restrict tz) _ATTRIBUTE((__weak__));
45 extern int gettimeofday(struct timeval *restrict tv, void *restrict tz) _ATTRIBUTE((__weak__));
37 gettimeofday (struct timeval *tv, void *tz) { in gettimeofday() argument
152 - restructuring of gmtime/localtime so tz functions only linked by localtime
25222 handling. Stole algorithm from Arthur David Olson's tz code.