Lines Matching refs:tm
156 struct tm *tm, tmbuf; in phar_zip_d2u_time() local
160 tm = php_localtime_r(&now, &tmbuf); in phar_zip_d2u_time()
162 tm->tm_year = ((ddate>>9)&127) + 1980 - 1900; in phar_zip_d2u_time()
163 tm->tm_mon = ((ddate>>5)&15) - 1; in phar_zip_d2u_time()
164 tm->tm_mday = ddate&31; in phar_zip_d2u_time()
166 tm->tm_hour = (dtime>>11)&31; in phar_zip_d2u_time()
167 tm->tm_min = (dtime>>5)&63; in phar_zip_d2u_time()
168 tm->tm_sec = (dtime<<1)&62; in phar_zip_d2u_time()
170 return mktime(tm); in phar_zip_d2u_time()
177 struct tm *tm, tmbuf; in phar_zip_u2d_time() local
179 tm = php_localtime_r(&time, &tmbuf); in phar_zip_u2d_time()
181 if (tm->tm_year >= 80) { in phar_zip_u2d_time()
182 cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; in phar_zip_u2d_time()
183 ctime = ((tm->tm_hour)<<11) + ((tm->tm_min)<<5) + ((tm->tm_sec)>>1); in phar_zip_u2d_time()