Lines Matching defs:utime
345 ud_dtime2utime(struct timespec32 *utime,
357 utime->tv_sec = cp[dtime->ts_month - 1];
358 utime->tv_sec += (dtime->ts_day - 1) * SEC_PER_DAY;
359 utime->tv_sec += ((dtime->ts_hour * 60) +
376 utime->tv_sec -= sec;
380 utime->tv_nsec = ((((dtime->ts_csec * 100) +
384 utime->tv_sec += (year - 1970) * SEC_PER_YEAR;
385 utime->tv_sec += ((year - 1969) / 4) * SEC_PER_DAY;
387 utime->tv_sec = ((1970 - year) * SEC_PER_YEAR +
389 utime->tv_sec) * -1;
390 if (utime->tv_nsec) {
391 utime->tv_sec++;
392 utime->tv_nsec = 1000 * 1000 * 1000 - utime->tv_nsec;
398 ud_utime2dtime(struct timespec32 const *utime,
401 time32_t sec = utime->tv_sec;
402 int32_t usec = utime->tv_nsec / 1000;