.SH DESCRIPTION
Determine the time cron will execute the next job. Without arguments, it
prints that time considering all crontabs, in number of seconds since the
-Epoch. This number can be converted into other formats using
+Epoch, rounded to the minute. This number can be converted into other formats
+using
.BR date (1),
like
.B date --date @43243254
.BI "\-t " time
Determine the next job from this time, instead of now. The time is
expressed in number of seconds since the Epoch, as obtained for example by
-.BR "date +%s --date \(dqnow + 2 hours\(dq" .
+.BR "date +%s --date \(dqnow + 2 hours\(dq" ,
+and is internally rounded to the minute.
.TP
.BI "\-q " time
-Do not check jobs over this time, expressed in number of seconds since the
-Epoch.
+Do not check jobs over this time, expressed in the same way as in option
+.BR -t .
.TP
.B \-l
Print the whole entries of the jobs that are the next to be executed by cron.
flags = SYSTEM;
endtime = 0;
printjobs = 0;
- start = time(NULL);
+ start = time(NULL) / 60 * 60;
while (-1 != (opt = getopt(argn, argv, "i:e:ast:q:lcfhV"))) {
switch (opt) {
flags &= ~SYSTEM;
break;
case 't':
- start = atoi(optarg);
+ start = atoi(optarg) / 60 * 60;
break;
case 'q':
- end = atoi(optarg);
+ end = atoi(optarg) / 60 * 60;
endtime = 1;
break;
case 'l':