Lines Matching defs:tmp_tm
581 struct tm tmp_tm;
584 * those fields specified in its format string, we use tmp_tm
590 if ((tail = strptime(date, " %a,", &tmp_tm)) == NULL)
593 tm->tm_wday = tmp_tm.tm_wday;
596 if ((tail = strptime(tail, " %d %b", &tmp_tm)) == NULL)
599 tm->tm_mday = tmp_tm.tm_mday;
600 tm->tm_mon = tmp_tm.tm_mon;
606 if ((p = strptime(tail, " %y", &tmp_tm)) != NULL && is_WSP(*p))
608 else if ((tail = strptime(tail, " %Y", &tmp_tm)) == NULL)
611 tm->tm_year = tmp_tm.tm_year;
614 if ((tail = strptime(tail, " %H:%M", &tmp_tm)) == NULL)
617 tm->tm_hour = tmp_tm.tm_hour;
618 tm->tm_min = tmp_tm.tm_min;
621 if ((p = strptime(tail, ":%S", &tmp_tm)) != NULL) {
623 tm->tm_sec = tmp_tm.tm_sec;
668 struct tm tmp_tm; /* see comment in date_to_tm() */
672 if ((tail = strptime(buf, " %a %b %d %H:%M", &tmp_tm)) == NULL)
675 tm->tm_wday = tmp_tm.tm_wday;
676 tm->tm_mday = tmp_tm.tm_mday;
677 tm->tm_mon = tmp_tm.tm_mon;
678 tm->tm_hour = tmp_tm.tm_hour;
679 tm->tm_min = tmp_tm.tm_min;
682 if ((p = strptime(tail, ":%S", &tmp_tm)) != NULL) {
684 tm->tm_sec = tmp_tm.tm_sec;
698 tail = strptime(tail, " %Y ", &tmp_tm);
699 tm->tm_year = tmp_tm.tm_year; /* save this even if it failed */