summaryrefslogtreecommitdiff
path: root/zic.8
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-03-08 21:29:27 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-03-08 21:29:27 -0800
commit4a6a2d26b519cedc4af6782dbddcd84c2879c6db (patch)
tree11e39cd9ba428031d787f8a5017a55b2decc6b54 /zic.8
parentce0baf7a4955c0942ea0c6a182bf94a961237fbc (diff)
downloadtz-4a6a2d26b519cedc4af6782dbddcd84c2879c6db.tar.gz
zic: new -r option
(Inspired by a feature request from Christopher Wong.) * Makefile (ZFLAGS), NEWS, zic.8, zic.c (usage): Mention it. * zic.8: Remove documentation for old -s option, which no longer was supported anyway. * zic.c (lo_time, hi_time): New static vars. (timerange_option): New function. (main): Use it to parse -r. (struct timerange): New type. (limitrange): New function. (writezone): Use it to support -r. (stringzone): Do not output a TZ string if the output is truncated on the high end; see Internet RFC
Diffstat (limited to 'zic.8')
-rw-r--r--zic.829
1 files changed, 24 insertions, 5 deletions
diff --git a/zic.8 b/zic.8
index 590e88a..5ca7079 100644
--- a/zic.8
+++ b/zic.8
@@ -79,6 +79,30 @@ Read leap second information from the file with the given name.
If this option is not used,
no leap second information appears in output files.
.TP
+.BR "\*-r " "[\fB@\fP\fIlo\fP][\fB/@\fP\fIhi\fP]"
+Reduce the size of output files by limiting their applicability
+to timestamps in the range from
+.I lo
+through
+.IR hi ,
+where
+.I lo
+and
+.I hi
+are possibly-signed decimal counts of seconds since the Epoch
+(1970-01-01 00:00:00 UTC).
+Omitted counts default to extreme values.
+For example,
+.q "zic \*-r @0"
+omits data intended for negative timestamps (i.e., before the Epoch), and
+.q "zic \*-r @0/@2147483647"
+outputs data intended only for nonnegative timestamps that fit into
+31-bit signed integers.
+On platforms with GNU
+.BR date ,
+.q "zic \-r @$(date +%s)"
+omits data intended for past timestamps.
+.TP
.B \*-v
Be more verbose, and complain about the following situations:
.RS
@@ -125,11 +149,6 @@ or it contains a file name component that contains more than 14 bytes
or that starts with
.q "\*-" .
.RE
-.TP
-.B \*-s
-Limit time values stored in output files to values that are the same
-whether they're taken to be signed or unsigned.
-You can use this option to generate SVVS-compatible files.
.SH FILES
Input files use the format described in this section; output files use
.IR tzfile (5)