<div dir="ltr"><div><div>Attached are changes for two zdump convenience options;<br></div>they also appear in mangled form below.<br><br></div> @dashdashado<br><br>diff -rc tz2014braw/zdump.8 tz2014bredone/zdump.8<br>*** tz2014braw/zdump.8 2014-03-26 16:33:56.432625200 -0400<br>
--- tz2014bredone/zdump.8 2014-03-26 16:35:28.051586100 -0400<br>***************<br>*** 13,19 ****<br> .B \-c<br> [loyear,]hiyear ] [<br> .B \-t<br>! [lotime,]hitime ] [ zonename ... ]<br> .SH DESCRIPTION<br> .I Zdump<br>
prints the current time in each<br>--- 13,23 ----<br> .B \-c<br> [loyear,]hiyear ] [<br> .B \-t<br>! [lotime,]hitime ] [ <br>! .B \-\-pre<br>! ] [<br>! .B \-\-ado<br>! ] [ zonename ... ]<br> .SH DESCRIPTION<br> .I Zdump<br>
prints the current time in each<br>***************<br>*** 56,61 ****<br>--- 60,71 ----<br> .BI "\-t " [lotime,]hitime<br> Cut off verbose output at the start of the given time(s),<br> given in decimal seconds since 1970-01-01 00:00:00 UTC.<br>
+ .TP<br>+ .BI "\-\-pre"<br>+ Limit output to pre-A.D. only; equivalent to \-Vc\-1<br>+ .TP<br>+ .BI "\-\-ado"<br>+ Limit output to A.D. only; equivalent to \-Vc1,2500<br> .SH LIMITATIONS<br> Time discontinuities are found by sampling the results returned by localtime<br>
at twelve-hour intervals.<br>diff -rc tz2014braw/zdump.c tz2014bredone/zdump.c<br>*** tz2014braw/zdump.c 2014-03-26 16:33:56.432625200 -0400<br>--- tz2014bredone/zdump.c 2014-03-26 16:37:38.748615700 -0400<br>***************<br>
*** 304,310 ****<br> usage(FILE * const stream, const int status)<br> {<br> (void) fprintf(stream,<br>! _("%s: usage: %s [--version] [--help] [-{vV}] [-{ct} [lo,]hi] zonename ...\n"<br> "\n"<br>
"Report bugs to %s.\n"),<br> progname, progname, REPORT_BUGS_TO);<br>--- 304,310 ----<br> usage(FILE * const stream, const int status)<br> {<br> (void) fprintf(stream,<br>! _("%s: usage: %s [--version] [--help] [--pre] [--ado] [-{vV}] [-{ct} [lo,]hi] zonename ...\n"<br>
"\n"<br> "Report bugs to %s.\n"),<br> progname, progname, REPORT_BUGS_TO);<br>***************<br>*** 346,351 ****<br>--- 346,355 ----<br> exit(EXIT_SUCCESS);<br> } else if (strcmp(argv[i], "--help") == 0) {<br>
usage(stdout, EXIT_SUCCESS);<br>+ } else if (strcmp(argv[i], "--pre") == 0) {<br>+ argv[i] = "-Vc-1";<br>+ } else if (strcmp(argv[i], "--ado") == 0) {<br>
+ argv[i] = "-Vc1,2500",<br> }<br> vflag = Vflag = 0;<br> cutarg = cuttimes = NULL;<br><br></div>