Lines Matching defs:argv
43 int date_main(int argc, char *argv[])
59 c = getopt(argc, argv, "us:");
71 argv[0], optopt);
76 fprintf(stderr,"%s [-u] [date]\n", argv[0]);
80 int hasfmt = argc == optind + 1 && argv[optind][0] == '+';
87 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S GMT %Y"),
92 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S %Z %Y"),
100 tmptr = getdate(argv[optind]);
107 if(getdate_r(argv[optind], &tm) < 0) {
113 //strptime(argv[optind], NULL, &tm);
116 strtotimeval(argv[optind], &tv);
117 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec);
129 fprintf(stderr,"%s [-s 20070325.123456] [-u] [date]\n", argv[0]);