Lines Matching refs:time_t

43  * This file contains routines to convert struct tm to time_t and
227 time_t ls_trans; /* transition time */
286 time_t ats[TZ_MAX_TIMES]; /* Trans. times */
430 static void *ltzset_u(time_t);
431 static struct tm *offtime_u(time_t, long, struct tm *);
434 static void set_zone_context(time_t);
442 * This code assumes time_t is type long. Note the difference of two
455 difftime(time_t time1, time_t time0)
467 * Accepts a time_t, returns a tm struct based on it, with
482 gmtime_r(const time_t *timep, struct tm *p_tm)
484 return (offtime_u((time_t)*timep, 0L, p_tm));
488 * Accepts a time_t, returns a tm struct based on it, with
500 gmtime(const time_t *timep)
584 * Returns tm struct based on input time_t argument, correcting
623 localtime_r(const time_t *timep, struct tm *p_tm)
649 * Accepts a time_t, returns a tm struct based on it, correcting
666 localtime(const time_t *timep)
677 * normalized time_t, also inducing documented side-effects in
680 static time_t
684 long long t; /* must hold more than 32-bit time_t */
694 /* Calculate time_t from tm arg. tm may need to be normalized. */
736 unused = ltzset_u((time_t)t);
747 set_zone_context((time_t)t);
754 set_zone_context((time_t)t);
756 (void) offtime_u((time_t)t,
760 (void) offtime_u((time_t)t,
764 (void) offtime_u((time_t)t, -timezone,
772 set_zone_context((time_t)t);
774 (void) offtime_u((time_t)t,
778 (void) offtime_u((time_t)t,
786 set_zone_context((time_t)t - dst_delta);
790 (void) offtime_u((time_t)t,
794 (void) offtime_u((time_t)t,
801 (void) offtime_u((time_t)t, 0L, &_tm);
806 (void) offtime_u((time_t)t, -altzone, &_tm);
809 (void) offtime_u((time_t)t, -timezone, &_tm);
815 (void) offtime_u((time_t)t, 0, &_tm);
830 return ((time_t)t);
833 time_t
839 time_t
864 _ltzset(time_t tim)
882 ltzset_u(time_t t)
1031 * In this function, any time_t not located in the cache is handled
1068 set_zone_context(time_t t)
1177 * This function takes a time_t and gmt offset and produces a
1188 offtime_u(time_t t, long offset, struct tm *tmptr)
2038 time_t *tranp;
2109 *tranp++ = (time_t)pdaylight.rtime[idx];
2115 *tranp++ = (time_t)pdaylight.rtime[ridx];