Lines Matching defs:tmp_tm
566 struct tm tmp_tm;
569 * those fields specified in its format string, we use tmp_tm
575 if ((tail = strptime(date, " %a,", &tmp_tm)) == NULL)
578 tm->tm_wday = tmp_tm.tm_wday;
581 if ((tail = strptime(tail, " %d %b", &tmp_tm)) == NULL)
584 tm->tm_mday = tmp_tm.tm_mday;
585 tm->tm_mon = tmp_tm.tm_mon;
591 if ((p = strptime(tail, " %y", &tmp_tm)) != NULL && is_WSP(*p))
593 else if ((tail = strptime(tail, " %Y", &tmp_tm)) == NULL)
596 tm->tm_year = tmp_tm.tm_year;
599 if ((tail = strptime(tail, " %H:%M", &tmp_tm)) == NULL)
602 tm->tm_hour = tmp_tm.tm_hour;
603 tm->tm_min = tmp_tm.tm_min;
606 if ((p = strptime(tail, ":%S", &tmp_tm)) != NULL) {
608 tm->tm_sec = tmp_tm.tm_sec;
653 struct tm tmp_tm; /* see comment in date_to_tm() */
657 if ((tail = strptime(buf, " %a %b %d %H:%M", &tmp_tm)) == NULL)
660 tm->tm_wday = tmp_tm.tm_wday;
661 tm->tm_mday = tmp_tm.tm_mday;
662 tm->tm_mon = tmp_tm.tm_mon;
663 tm->tm_hour = tmp_tm.tm_hour;
664 tm->tm_min = tmp_tm.tm_min;
667 if ((p = strptime(tail, ":%S", &tmp_tm)) != NULL) {
669 tm->tm_sec = tmp_tm.tm_sec;
683 tail = strptime(tail, " %Y ", &tmp_tm);
684 tm->tm_year = tmp_tm.tm_year; /* save this even if it failed */