Lines Matching refs:tm
3309 struct tm tm; in mz_zip_dos_to_time_t() local
3310 memset(&tm, 0, sizeof(tm)); in mz_zip_dos_to_time_t()
3311 tm.tm_isdst = -1; in mz_zip_dos_to_time_t()
3312 tm.tm_year = ((dos_date >> 9) & 127) + 1980 - 1900; in mz_zip_dos_to_time_t()
3313 tm.tm_mon = ((dos_date >> 5) & 15) - 1; in mz_zip_dos_to_time_t()
3314 tm.tm_mday = dos_date & 31; in mz_zip_dos_to_time_t()
3315 tm.tm_hour = (dos_time >> 11) & 31; in mz_zip_dos_to_time_t()
3316 tm.tm_min = (dos_time >> 5) & 63; in mz_zip_dos_to_time_t()
3317 tm.tm_sec = (dos_time << 1) & 62; in mz_zip_dos_to_time_t()
3318 return mktime(&tm); in mz_zip_dos_to_time_t()
3325 struct tm tm_struct; in mz_zip_time_t_to_dos_time()
3326 struct tm *tm = &tm_struct; in mz_zip_time_t_to_dos_time() local
3327 errno_t err = localtime_s(tm, &time); in mz_zip_time_t_to_dos_time()
3335 struct tm *tm = localtime(&time); in mz_zip_time_t_to_dos_time()
3338 *pDOS_time = (mz_uint16)(((tm->tm_hour) << 11) + ((tm->tm_min) << 5) + ((tm->tm_sec) >> 1)); in mz_zip_time_t_to_dos_time()
3339 …*pDOS_date = (mz_uint16)(((tm->tm_year + 1900 - 1980) << 9) + ((tm->tm_mon + 1) << 5) + tm->tm_mda… in mz_zip_time_t_to_dos_time()