Lines Matching refs:tm
41 struct tm
42 *smb_gmtime_r(time_t *clock, struct tm *result);
45 smb_timegm(struct tm *tm);
47 struct tm { struct
124 struct tm atm; in smb_time_dos_to_unix()
144 struct tm atm; in smb_time_unix_to_dos()
191 struct tm *
192 smb_gmtime_r(time_t *clock, struct tm *result) in smb_gmtime_r()
202 bzero(result, sizeof (struct tm)); in smb_gmtime_r()
263 smb_timegm(struct tm *tm) in smb_timegm() argument
271 if (tm == 0) in smb_timegm()
274 year = tm->tm_year + TM_YEAR_BASE; in smb_timegm()
284 for (mm = TM_JANUARY; mm < tm->tm_mon; ++mm) { in smb_timegm()
293 tsec += (tm->tm_mday - 1) * SECSPERDAY; in smb_timegm()
294 tsec += tm->tm_sec; in smb_timegm()
295 tsec += tm->tm_min * SECSPERMIN; in smb_timegm()
296 tsec += tm->tm_hour * SECSPERHOUR; in smb_timegm()
298 tm->tm_isdst = 0; in smb_timegm()
299 (void) smb_gmtime_r(&tsec, tm); in smb_timegm()