Lines Matching refs:tmP
164 tm_to_time( struct tm* tmP ) in tm_to_time() argument
171 t = ( tmP->tm_year - 70 ) * 365; in tm_to_time()
173 t += ( tmP->tm_year - 1 - 68 ) / 4; /* -1: don't count this year */ in tm_to_time()
176 if (tmP->tm_year > 200) in tm_to_time()
177 t -= (tmP->tm_year - 1 - 100) / 100; in tm_to_time()
178 if (tmP->tm_year > 500) in tm_to_time()
179 t += (tmP->tm_year - 1 - 100) / 400; in tm_to_time()
182 t += monthtab[tmP->tm_mon]; in tm_to_time()
184 if ( tmP->tm_mon >= 2 && is_leap( tmP->tm_year ) ) in tm_to_time()
187 t += tmP->tm_mday - 1; /* 1-based field */ in tm_to_time()
189 t = t * 24 + tmP->tm_hour; in tm_to_time()
190 t = t * 60 + tmP->tm_min; in tm_to_time()
191 t = t * 60 + tmP->tm_sec; in tm_to_time()