Lines Matching refs:t
100 cdf_timestamp_to_timespec(struct timespec *ts, cdf_timestamp_t t) in cdf_timestamp_to_timespec() argument
109 ts->tv_nsec = (t % CDF_TIME_PREC) * 100; in cdf_timestamp_to_timespec()
111 t /= CDF_TIME_PREC; in cdf_timestamp_to_timespec()
112 tm.tm_sec = CAST(int, t % 60); in cdf_timestamp_to_timespec()
113 t /= 60; in cdf_timestamp_to_timespec()
115 tm.tm_min = CAST(int, t % 60); in cdf_timestamp_to_timespec()
116 t /= 60; in cdf_timestamp_to_timespec()
118 tm.tm_hour = CAST(int, t % 24); in cdf_timestamp_to_timespec()
119 t /= 24; in cdf_timestamp_to_timespec()
122 tm.tm_year = CAST(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, CAST(int, t)); in cdf_timestamp_to_timespec()
127 tm.tm_mon = cdf_getmonth(tm.tm_year, CAST(int, t)); in cdf_timestamp_to_timespec()
148 cdf_timespec_to_timestamp(cdf_timestamp_t *t, const struct timespec *ts) in cdf_timespec_to_timestamp() argument
151 (void)&t; in cdf_timespec_to_timestamp()
160 *t = (ts->ts_nsec / 100) * 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()