Lines Matching refs:day
262 int month, day, lastday; in hpgps_receive() local
416 &pp->year, &month, &day, &pp->hour, &pp->minute, &pp->second, in hpgps_receive()
463 if (month < 1 || month > 12 || day < 1) { in hpgps_receive()
470 if (day > day1tab[month - 1]) { in hpgps_receive()
474 for (i = 0; i < month - 1; i++) day += day1tab[i]; in hpgps_receive()
478 if (day > day2tab[month - 1]) { in hpgps_receive()
482 for (i = 0; i < month - 1; i++) day += day2tab[i]; in hpgps_receive()
505 day--; in hpgps_receive()
506 if (day < 1) { in hpgps_receive()
509 day = 366; in hpgps_receive()
511 day = 365; in hpgps_receive()
517 day++; in hpgps_receive()
518 if (day > lastday) { in hpgps_receive()
520 day = 1; in hpgps_receive()
524 pp->day = day; in hpgps_receive()