Home
last modified time | relevance | path

Searched refs:tmP (Results 1 – 1 of 1) sorted by relevance

/mOS-networking-stack/util/
H A Dtdate_parse.c164 tm_to_time( struct tm* tmP ) in tm_to_time() argument
171 t = ( tmP->tm_year - 70 ) * 365; 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()
189 t = t * 24 + tmP->tm_hour; in tm_to_time()
190 t = t * 60 + tmP->tm_min; in tm_to_time()
[all …]