Lines Matching refs:tm
126 struct tm *tm, tmbuf; in phar_zip_d2u_time() local
130 tm = php_localtime_r(&now, &tmbuf); in phar_zip_d2u_time()
132 tm->tm_year = ((ddate>>9)&127) + 1980 - 1900; in phar_zip_d2u_time()
133 tm->tm_mon = ((ddate>>5)&15) - 1; in phar_zip_d2u_time()
134 tm->tm_mday = ddate&31; in phar_zip_d2u_time()
136 tm->tm_hour = (dtime>>11)&31; in phar_zip_d2u_time()
137 tm->tm_min = (dtime>>5)&63; in phar_zip_d2u_time()
138 tm->tm_sec = (dtime<<1)&62; in phar_zip_d2u_time()
140 return mktime(tm); in phar_zip_d2u_time()
147 struct tm *tm, tmbuf; in phar_zip_u2d_time() local
149 tm = php_localtime_r(&time, &tmbuf); in phar_zip_u2d_time()
150 cdate = ((tm->tm_year+1900-1980)<<9) + ((tm->tm_mon+1)<<5) + tm->tm_mday; in phar_zip_u2d_time()
151 ctime = ((tm->tm_hour)<<11) + ((tm->tm_min)<<5) + ((tm->tm_sec)>>1); in phar_zip_u2d_time()