Lines Matching refs:time
11 #include <time.h>
24 " Note: daylight savings time changes are not tracked\n"
122 parse_time_string(int *hour, int *minute, const char *time)
131 if (split_time((char **)&hours, (char **)&minutes, time) == 1)
149 "invalid time `%s' specified, should be HH:MM format", time);
474 struct ipt_time_info *time = ((struct ipt_time_info *)match->data);
477 divide_time(time->time_start, &hour_start, &minute_start);
478 divide_time(time->time_stop, &hour_stop, &minute_stop);
480 if (time->time_start != 0)
482 if (time->time_stop != 1439) /* 23*60+59 = 1439 */
485 if (time->days_match == 127)
488 print_days(time->days_match);
489 if (time->date_start != 0)
492 print_date(time->date_start, NULL);
494 if (time->date_stop != LONG_MAX)
497 print_date(time->date_stop, NULL);
505 struct ipt_time_info *time = ((struct ipt_time_info *)match->data);
508 divide_time(time->time_start, &hour_start, &minute_start);
509 divide_time(time->time_stop, &hour_stop, &minute_stop);
510 if (time->time_start != 0)
514 if (time->time_stop != 1439) /* 23*60+59 = 1439 */
518 if (time->days_match != 127)
521 print_days(time->days_match);
524 print_date(time->date_start, "--datestart");
525 print_date(time->date_stop, "--datestop");
533 .name = "time",