Lines Matching refs:t
99 cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t) in cdf_timestamp_to_timespec() argument
108 ts->tv_nsec = (t % CDF_TIME_PREC) * 100; in cdf_timestamp_to_timespec()
110 t /= CDF_TIME_PREC; in cdf_timestamp_to_timespec()
111 tm.tm_sec = CAST(int, t % 60); in cdf_timestamp_to_timespec()
112 t /= 60; in cdf_timestamp_to_timespec()
114 tm.tm_min = CAST(int, t % 60); in cdf_timestamp_to_timespec()
115 t /= 60; in cdf_timestamp_to_timespec()
117 tm.tm_hour = CAST(int, t % 24); in cdf_timestamp_to_timespec()
118 t /= 24; in cdf_timestamp_to_timespec()
121 tm.tm_year = CAST(int, CDF_BASE_YEAR + (t / 365)); in cdf_timestamp_to_timespec()
124 t -= rdays - 1; in cdf_timestamp_to_timespec()
125 tm.tm_mday = cdf_getday(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec()
126 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec()
147 cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timespec *ts) in cdf_timespec_to_timestamp() argument
150 (void)&t; in cdf_timespec_to_timestamp()
159 *t = (ts->ts_nsec / 100) * CDF_TIME_PREC; in cdf_timespec_to_timestamp()
160 *t += tm.tm_sec; in cdf_timespec_to_timestamp()
161 *t += tm.tm_min * 60; in cdf_timespec_to_timestamp()
162 *t += tm.tm_hour * 60 * 60; in cdf_timespec_to_timestamp()
163 *t += tm.tm_mday * 60 * 60 * 24; in cdf_timespec_to_timestamp()