Lines Matching refs:optind
73 if(optind + 2 < argc) {
78 int hasfmt = argc == optind + 1 && argv[optind][0] == '+';
79 if(optind == argc || hasfmt) {
85 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S GMT %Y"),
90 (hasfmt ? argv[optind] + 1 : "%a %b %e %H:%M:%S %Z %Y"),
95 else if(optind + 1 == argc) {
98 tmptr = getdate(argv[optind]);
105 if(getdate_r(argv[optind], &tm) < 0) {
111 //strptime(argv[optind], NULL, &tm);
114 strtotimeval(argv[optind], &tv);
115 printf("time %s -> %d.%d\n", argv[optind], tv.tv_sec, tv.tv_usec);