Lines Matching refs:date
98 static int parsedate(const char *date, time_t *output);
266 static void skip(const char **date) in skip() argument
269 while(**date && !ISALNUM(**date)) in skip()
270 (*date)++; in skip()
299 static int oneortwodigit(const char *date, const char **endp) in oneortwodigit() argument
301 int num = date[0] - '0'; in oneortwodigit()
302 if(ISDIGIT(date[1])) { in oneortwodigit()
303 *endp = &date[2]; in oneortwodigit()
304 return num*10 + (date[1] - '0'); in oneortwodigit()
306 *endp = &date[1]; in oneortwodigit()
312 static bool match_time(const char *date, in match_time() argument
317 hh = oneortwodigit(date, &p); in match_time()
357 static int parsedate(const char *date, time_t *output) in parsedate() argument
369 const char *indate = date; /* save the original pointer */ in parsedate()
372 while(*date && (part < 6)) { in parsedate()
375 skip(&date); in parsedate()
377 if(ISALPHA(*date)) { in parsedate()
380 const char *p = date; in parsedate()
388 wdaynum = checkday(date, len); in parsedate()
393 monnum = checkmonth(date, len); in parsedate()
400 tzoff = checktz(date, len); in parsedate()
408 date += len; in parsedate()
410 else if(ISDIGIT(*date)) { in parsedate()
415 match_time(date, &hournum, &minnum, &secnum, &end)) { in parsedate()
417 date = end; in parsedate()
426 lval = strtol(date, &end, 10); in parsedate()
442 ((end - date) == 4) && in parsedate()
444 (indate < date) && in parsedate()
445 ((date[-1] == '+' || date[-1] == '-'))) { in parsedate()
459 tzoff = date[-1]=='+' ? -tzoff : tzoff; in parsedate()
462 if(((end - date) == 8) && in parsedate()
497 date = end; in parsedate()
574 static int parsedate(const char *date, time_t *output) in parsedate() argument
576 (void)date; in parsedate()