tz 78 lib/gettimeofday.c gettimeofday (struct timeval *restrict tv, void *restrict tz) tz 130 lib/gettimeofday.c int result = gettimeofday (&otv, (struct timezone *) tz); tz 134 lib/gettimeofday.c int result = gettimeofday (tv, (struct timezone *) tz); tz 95 lib/mktime.c const char *tz = getenv ("TZ"); tz 96 lib/mktime.c if (tz != NULL && strchr (tz, '/') != NULL) tz 121 lib/nstrftime.c # define mktime_z(tz, tm) mktime (tm) tz 390 lib/nstrftime.c # define extra_args , tz, ns tz 391 lib/nstrftime.c # define extra_args_spec , timezone_t tz, int ns tz 505 lib/nstrftime.c if (!tz) tz 514 lib/nstrftime.c tzname_vec = tz->tzname_copy; tz 1189 lib/nstrftime.c t = mktime_z (tz, <m); tz 1433 lib/nstrftime.c if (!tz) tz 1453 lib/nstrftime.c lt = mktime_z (tz, <m); tz 69 lib/time_rz.c timezone_t tz = malloc (FLEXSIZEOF (struct tm_zone, abbrs, abbr_size)); tz 70 lib/time_rz.c if (tz) tz 72 lib/time_rz.c tz->next = NULL; tz 74 lib/time_rz.c tz->tzname_copy[0] = tz->tzname_copy[1] = NULL; tz 76 lib/time_rz.c tz->tz_is_set = !!name; tz 77 lib/time_rz.c tz->abbrs[0] = '\0'; tz 79 lib/time_rz.c extend_abbrs (tz->abbrs, name, name_size); tz 81 lib/time_rz.c return tz; tz 89 lib/time_rz.c save_abbr (timezone_t tz, struct tm *tm) tz 117 lib/time_rz.c zone_copy = tz->abbrs; tz 121 lib/time_rz.c if (! (*zone_copy || (zone_copy == tz->abbrs && tz->tz_is_set))) tz 124 lib/time_rz.c if (zone_size < tz->abbrs + ABBR_SIZE_MIN - zone_copy) tz 128 lib/time_rz.c tz = tz->next = tzalloc (zone); tz 129 lib/time_rz.c if (!tz) tz 131 lib/time_rz.c tz->tz_is_set = 0; tz 132 lib/time_rz.c zone_copy = tz->abbrs; tz 138 lib/time_rz.c if (!*zone_copy && tz->next) tz 140 lib/time_rz.c tz = tz->next; tz 141 lib/time_rz.c zone_copy = tz->abbrs; tz 151 lib/time_rz.c tz->tzname_copy[tzname_index] = zone_copy; tz 160 lib/time_rz.c tzfree (timezone_t tz) tz 162 lib/time_rz.c if (tz != local_tz) tz 163 lib/time_rz.c while (tz) tz 165 lib/time_rz.c timezone_t next = tz->next; tz 166 lib/time_rz.c free (tz); tz 167 lib/time_rz.c tz = next; tz 184 lib/time_rz.c setenv_TZ (char const *tz) tz 186 lib/time_rz.c return tz ? setenv ("TZ", tz, 1) : unsetenv ("TZ"); tz 193 lib/time_rz.c change_env (timezone_t tz) tz 195 lib/time_rz.c if (setenv_TZ (tz->tz_is_set ? tz->abbrs : NULL) != 0) tz 206 lib/time_rz.c set_tz (timezone_t tz) tz 210 lib/time_rz.c ? tz->tz_is_set && strcmp (tz->abbrs, env_tz) == 0 tz 211 lib/time_rz.c : !tz->tz_is_set) tz 218 lib/time_rz.c if (! change_env (tz)) tz 233 lib/time_rz.c revert_tz (timezone_t tz) tz 235 lib/time_rz.c if (tz == local_tz) tz 240 lib/time_rz.c bool ok = change_env (tz); tz 243 lib/time_rz.c tzfree (tz); tz 251 lib/time_rz.c localtime_rz (timezone_t tz, time_t const *t, struct tm *tm) tz 268 lib/time_rz.c if (!tz) tz 272 lib/time_rz.c timezone_t old_tz = set_tz (tz); tz 275 lib/time_rz.c bool abbr_saved = localtime_r (t, tm) && save_abbr (tz, tm); tz 285 lib/time_rz.c mktime_z (timezone_t tz, struct tm *tm) tz 287 lib/time_rz.c if (!tz) tz 291 lib/time_rz.c timezone_t old_tz = set_tz (tz); tz 306 lib/time_rz.c ok = ok && save_abbr (tz, &tm_1); tz 181 src/timefns.c emacs_localtime_rz (timezone_t tz, time_t const *t, struct tm *tm) tz 192 src/timefns.c tm = localtime_rz (tz, t, tm); tz 207 src/timefns.c xtzfree (timezone_t tz) tz 209 src/timefns.c if (tz != local_tz) tz 210 src/timefns.c tzfree (tz); tz 335 src/timefns.c char *tz = getenv ("TZ"); tz 343 src/timefns.c if (tz && strcmp (tz, &dump_tz_string[tzeqlen]) == 0) tz 345 src/timefns.c ++*tz; tz 347 src/timefns.c --*tz; tz 353 src/timefns.c tzlookup (tz ? build_string (tz) : Qwall, true); tz 1305 src/timefns.c size_t format_len, const struct tm *tp, timezone_t tz, int ns) tz 1318 src/timefns.c size_t result = nstrftime (s, maxsize, format, tp, tz, ns); tz 1349 src/timefns.c timezone_t tz = tzlookup (zone, false); tz 1354 src/timefns.c tmp = emacs_localtime_rz (tz, &tsec, tmp); tz 1358 src/timefns.c xtzfree (tz); tz 1366 src/timefns.c len = emacs_nmemftime (buf, size, format, formatlen, tmp, tz, ns); tz 1372 src/timefns.c len = emacs_nmemftime (NULL, SIZE_MAX, format, formatlen, tmp, tz, ns); tz 1375 src/timefns.c xtzfree (tz); tz 1382 src/timefns.c xtzfree (tz); tz 1524 src/timefns.c timezone_t tz = tzlookup (zone, false); tz 1525 src/timefns.c struct tm *tm = emacs_localtime_rz (tz, &time_spec, &local_tm); tz 1527 src/timefns.c xtzfree (tz); tz 1720 src/timefns.c timezone_t tz = tzlookup (zone, false); tz 1722 src/timefns.c time_t value = mktime_z (tz, &tm); tz 1724 src/timefns.c xtzfree (tz); tz 1834 src/timefns.c timezone_t tz = tzlookup (zone, false); tz 1841 src/timefns.c struct tm *tmp = emacs_localtime_rz (tz, &value, &tm); tz 1843 src/timefns.c xtzfree (tz); tz 1938 src/timefns.c (Lisp_Object tz) tz 1940 src/timefns.c tzlookup (NILP (tz) ? Qwall : tz, true);