Lines Matching refs:time
12 #include <time.h>
25 " Note: daylight savings time changes are not tracked\n"
123 parse_time_string(int *hour, int *minute, const char *time)
132 if (split_time((char **)&hours, (char **)&minutes, time) == 1)
150 "invalid time `%s' specified, should be HH:MM format", time);
475 struct ipt_time_info *time = ((struct ipt_time_info *)match->data);
478 divide_time(time->time_start, &hour_start, &minute_start);
479 divide_time(time->time_stop, &hour_stop, &minute_stop);
481 if (time->time_start != 0)
483 if (time->time_stop != 1439) /* 23*60+59 = 1439 */
486 if (time->days_match == 127)
489 print_days(time->days_match);
490 if (time->date_start != 0)
493 print_date(time->date_start, NULL);
495 if (time->date_stop != LONG_MAX)
498 print_date(time->date_stop, NULL);
506 struct ipt_time_info *time = ((struct ipt_time_info *)match->data);
509 divide_time(time->time_start, &hour_start, &minute_start);
510 divide_time(time->time_stop, &hour_stop, &minute_stop);
511 if (time->time_start != 0)
515 if (time->time_stop != 1439) /* 23*60+59 = 1439 */
519 if (time->days_match != 127)
522 print_days(time->days_match);
525 print_date(time->date_start, "--datestart");
526 print_date(time->date_stop, "--datestop");
534 .name = "time",