Lines Matching refs:t
99 cdf_timestamp_to_timespec(struct timeval *ts, cdf_timestamp_t t) in cdf_timestamp_to_timespec() argument
109 ts->tv_usec = (t % CDF_TIME_PREC) * CDF_TIME_PREC; in cdf_timestamp_to_timespec()
111 t /= CDF_TIME_PREC; in cdf_timestamp_to_timespec()
112 tm.tm_sec = (int)(t % 60); in cdf_timestamp_to_timespec()
113 t /= 60; in cdf_timestamp_to_timespec()
115 tm.tm_min = (int)(t % 60); in cdf_timestamp_to_timespec()
116 t /= 60; in cdf_timestamp_to_timespec()
118 tm.tm_hour = (int)(t % 24); in cdf_timestamp_to_timespec()
119 t /= 24; in cdf_timestamp_to_timespec()
122 tm.tm_year = (int)(CDF_BASE_YEAR + (t / 365)); in cdf_timestamp_to_timespec()
125 t -= rdays - 1; in cdf_timestamp_to_timespec()
126 tm.tm_mday = cdf_getday(tm.tm_year, (int)t); in cdf_timestamp_to_timespec()
127 tm.tm_mon = cdf_getmonth(tm.tm_year, (int)t); in cdf_timestamp_to_timespec()
148 cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timeval *ts) in cdf_timespec_to_timestamp() argument
151 (void)&t; in cdf_timespec_to_timestamp()
160 *t = (ts->ts_usec / CDF_TIME_PREC) * CDF_TIME_PREC; in cdf_timespec_to_timestamp()
161 *t = tm.tm_sec; in cdf_timespec_to_timestamp()
162 *t += tm.tm_min * 60; in cdf_timespec_to_timestamp()
163 *t += tm.tm_hour * 60 * 60; in cdf_timespec_to_timestamp()
164 *t += tm.tm_mday * 60 * 60 * 24; in cdf_timespec_to_timestamp()