Lines Matching refs:date
34 { "date", required_argument, NULL, 'd' },
45 * entries as this date are shown.
52 /* Indicate a date -> end of a entry. Will fail on 2100-01-01... */
59 char *date = NULL; /* Passed -d argument */
60 char *dateline = NULL; /* Saved date of an entry */
95 date = optarg;
108 /* Check if passed date has a correct format. */
110 linelength = strlen(date);
113 if (strspn(date, "0123456789") != 8) {
114 fprintf(stderr, "unknown date format: %s\n", date);
236 /* If -d is set, check if entry is newer than the date. */
237 if ((dflag == 1) && (strncmp(dateline, date, 8) < 0))
258 /* Save the actual line, it could be a date. */