1986-12-02 18:58:41 -05:00
|
|
|
.TH ZDUMP 8
|
1986-11-15 20:18:00 -05:00
|
|
|
.SH NAME
|
1986-11-19 19:17:16 -05:00
|
|
|
zdump \- time zone dumper
|
1986-11-15 20:18:00 -05:00
|
|
|
.SH SYNOPSIS
|
1986-11-19 19:17:16 -05:00
|
|
|
.B zdump
|
1986-11-15 20:18:00 -05:00
|
|
|
[
|
2014-06-28 16:35:14 -07:00
|
|
|
.I option
|
|
|
|
|
\&... ] [
|
|
|
|
|
.I zonename
|
|
|
|
|
\&... ]
|
1986-11-15 20:18:00 -05:00
|
|
|
.SH DESCRIPTION
|
2014-06-28 16:35:14 -07:00
|
|
|
.ie \n(.g .ds - \f(CW-\fP
|
|
|
|
|
.el ds - \-
|
1986-11-19 19:17:16 -05:00
|
|
|
.I Zdump
|
1986-11-15 20:18:00 -05:00
|
|
|
prints the current time in each
|
|
|
|
|
.I zonename
|
|
|
|
|
named on the command line.
|
|
|
|
|
.PP
|
1986-11-24 16:14:45 -05:00
|
|
|
These options are available:
|
1986-11-15 20:18:00 -05:00
|
|
|
.TP
|
2014-06-28 16:35:14 -07:00
|
|
|
.BI "\*-\*-version"
|
2003-07-29 13:12:49 -04:00
|
|
|
Output version information and exit.
|
|
|
|
|
.TP
|
2014-06-28 16:35:14 -07:00
|
|
|
.B \*-v
|
1986-11-15 20:18:00 -05:00
|
|
|
For each
|
|
|
|
|
.I zonename
|
|
|
|
|
on the command line,
|
1996-05-02 15:24:36 -04:00
|
|
|
print the time at the lowest possible time value,
|
1986-11-15 20:18:00 -05:00
|
|
|
the time one day after the lowest possible time value,
|
|
|
|
|
the times both one second before and exactly at
|
1989-02-23 08:37:59 -05:00
|
|
|
each detected time discontinuity,
|
1988-01-25 10:59:02 -05:00
|
|
|
the time at one day less than the highest possible time value,
|
2014-09-21 21:16:39 -07:00
|
|
|
and the time at the highest possible time value.
|
|
|
|
|
Each line is followed by
|
|
|
|
|
.BI isdst= D
|
|
|
|
|
where
|
|
|
|
|
.I D
|
2014-09-21 22:03:34 -07:00
|
|
|
is positive, zero, or negative depending on whether
|
|
|
|
|
the given time is daylight saving time, standard time,
|
|
|
|
|
or an unknown time type, respectively.
|
2014-09-21 21:16:39 -07:00
|
|
|
Each line is also followed by
|
|
|
|
|
.BI gmtoff= N
|
|
|
|
|
if the given local time is known to be
|
|
|
|
|
.I N
|
|
|
|
|
seconds east of Greenwich.
|
2013-05-30 00:00:09 -07:00
|
|
|
.TP
|
2014-06-28 16:35:14 -07:00
|
|
|
.B \*-V
|
Add support for testing time_t types other than the system's.
This makes it easier to test on (say) Debian, even if we're
testing the time_t type on (say) NetBSD. NetBSD uses 64-bit
time_t on 32-bit hosts, and this lets us test a NetBSD-style
implementation (32-bit 'long', 64-bit time_t) on a 32-bit Debian host.
* Makefile: Update comments to talk about TIME_T_FLOATING and time_tz.
Sort the comments.
* private.h (restrict): Define to empty with older compilers.
'restrict' is now needed, to define gmtime_r and localtime_r in
standard ways when time_tz is defined.
Make the following changes if time_tz is defined:
(sys_time, time): New static functions. The former is the system
'time' function that applies to the system time_t, the latter
our function that applies to our time_t.
(time_t, ctime, ctime_r, difftime, gmtime, gmtime_r, localtime)
(localtime_r, mktime): Rename to tz_time_t, tz_ctime, etc.,
via macros. Declare the renamed versions.
* zdump.8: Document new options -V, -t.
* zdump.c: Include private.h if time_tz is defined.
(INITIALIZE): Remove; no longer needed.
(absolute_min_time, absolute_max_time): Work even if time_t
is wider than intmax_t, which can be true with GCC and __int128_t.
Use the new TIME_T_FLOATING macro for this.
(usage): Document new flags.
(main): Support them.
2013-05-27 14:01:55 -07:00
|
|
|
Like
|
2014-06-28 16:35:14 -07:00
|
|
|
.BR \*-v ,
|
Add support for testing time_t types other than the system's.
This makes it easier to test on (say) Debian, even if we're
testing the time_t type on (say) NetBSD. NetBSD uses 64-bit
time_t on 32-bit hosts, and this lets us test a NetBSD-style
implementation (32-bit 'long', 64-bit time_t) on a 32-bit Debian host.
* Makefile: Update comments to talk about TIME_T_FLOATING and time_tz.
Sort the comments.
* private.h (restrict): Define to empty with older compilers.
'restrict' is now needed, to define gmtime_r and localtime_r in
standard ways when time_tz is defined.
Make the following changes if time_tz is defined:
(sys_time, time): New static functions. The former is the system
'time' function that applies to the system time_t, the latter
our function that applies to our time_t.
(time_t, ctime, ctime_r, difftime, gmtime, gmtime_r, localtime)
(localtime_r, mktime): Rename to tz_time_t, tz_ctime, etc.,
via macros. Declare the renamed versions.
* zdump.8: Document new options -V, -t.
* zdump.c: Include private.h if time_tz is defined.
(INITIALIZE): Remove; no longer needed.
(absolute_min_time, absolute_max_time): Work even if time_t
is wider than intmax_t, which can be true with GCC and __int128_t.
Use the new TIME_T_FLOATING macro for this.
(usage): Document new flags.
(main): Support them.
2013-05-27 14:01:55 -07:00
|
|
|
except omit the times relative to the extreme time values.
|
|
|
|
|
This generates output that is easier to compare to that of
|
|
|
|
|
implementations with different time representations.
|
1986-11-24 16:14:45 -05:00
|
|
|
.TP
|
2014-06-28 16:35:14 -07:00
|
|
|
.BI "\*-c " [loyear,]hiyear
|
2014-09-08 12:24:35 -07:00
|
|
|
Cut off verbose output at the given year(s).
|
2014-09-11 00:29:22 -07:00
|
|
|
Cutoff times are computed using the proleptic Gregorian calendar with year 0
|
2014-09-08 12:24:35 -07:00
|
|
|
and with Universal Time (UT) ignoring leap seconds.
|
2014-09-10 23:05:10 -07:00
|
|
|
The lower bound is exclusive and the upper is inclusive; for example, a
|
2014-09-08 12:24:35 -07:00
|
|
|
.I loyear
|
2014-09-10 23:05:10 -07:00
|
|
|
of 1970 excludes a transition occurring at the very start of 1970 but a
|
2014-09-08 12:24:35 -07:00
|
|
|
.I hiyear
|
2014-09-10 23:05:10 -07:00
|
|
|
of 1970 includes the transition.
|
2014-09-08 12:24:35 -07:00
|
|
|
The default cutoff is
|
|
|
|
|
.BR \*-500,2500 .
|
Add support for testing time_t types other than the system's.
This makes it easier to test on (say) Debian, even if we're
testing the time_t type on (say) NetBSD. NetBSD uses 64-bit
time_t on 32-bit hosts, and this lets us test a NetBSD-style
implementation (32-bit 'long', 64-bit time_t) on a 32-bit Debian host.
* Makefile: Update comments to talk about TIME_T_FLOATING and time_tz.
Sort the comments.
* private.h (restrict): Define to empty with older compilers.
'restrict' is now needed, to define gmtime_r and localtime_r in
standard ways when time_tz is defined.
Make the following changes if time_tz is defined:
(sys_time, time): New static functions. The former is the system
'time' function that applies to the system time_t, the latter
our function that applies to our time_t.
(time_t, ctime, ctime_r, difftime, gmtime, gmtime_r, localtime)
(localtime_r, mktime): Rename to tz_time_t, tz_ctime, etc.,
via macros. Declare the renamed versions.
* zdump.8: Document new options -V, -t.
* zdump.c: Include private.h if time_tz is defined.
(INITIALIZE): Remove; no longer needed.
(absolute_min_time, absolute_max_time): Work even if time_t
is wider than intmax_t, which can be true with GCC and __int128_t.
Use the new TIME_T_FLOATING macro for this.
(usage): Document new flags.
(main): Support them.
2013-05-27 14:01:55 -07:00
|
|
|
.TP
|
2014-06-28 16:35:14 -07:00
|
|
|
.BI "\*-t " [lotime,]hitime
|
2014-09-08 12:24:35 -07:00
|
|
|
Cut off verbose output at the given time(s),
|
2014-09-06 17:42:00 -07:00
|
|
|
given in decimal seconds since 1970-01-01 00:00:00
|
|
|
|
|
Coordinated Universal Time (UTC).
|
2014-09-08 12:24:35 -07:00
|
|
|
The
|
|
|
|
|
.I zonename
|
|
|
|
|
determines whether the count includes leap seconds.
|
|
|
|
|
As with
|
|
|
|
|
.BR \*-c ,
|
2014-09-10 23:05:10 -07:00
|
|
|
the cutoff's lower bound is exclusive and its upper bound is inclusive.
|
2004-11-22 10:49:25 -05:00
|
|
|
.SH LIMITATIONS
|
|
|
|
|
Time discontinuities are found by sampling the results returned by localtime
|
|
|
|
|
at twelve-hour intervals.
|
|
|
|
|
This works in all real-world cases;
|
|
|
|
|
one can construct artificial time zones for which this fails.
|
2013-09-05 06:53:45 -07:00
|
|
|
.PP
|
|
|
|
|
In the output, "UT" denotes the value returned by
|
|
|
|
|
.IR gmtime (3),
|
|
|
|
|
which uses UTC for modern time stamps and some other UT flavor for
|
|
|
|
|
time stamps that predate the introduction of UTC.
|
|
|
|
|
No attempt is currently made to have the output use "UTC" for newer
|
|
|
|
|
and "UT" for older time stamps,
|
|
|
|
|
partly because the exact date of the introduction of UTC is problematic.
|
1986-11-15 20:18:00 -05:00
|
|
|
.SH "SEE ALSO"
|
1987-02-21 18:26:36 -05:00
|
|
|
newctime(3), tzfile(5), zic(8)
|
2009-05-17 14:37:50 -04:00
|
|
|
.\" This file is in the public domain, so clarified as of
|
|
|
|
|
.\" 2009-05-17 by Arthur David Olson.
|