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
|
|
|
[
|
2003-07-29 13:12:49 -04:00
|
|
|
.B \-\-version
|
2013-05-30 00:00:09 -07:00
|
|
|
] [
|
1986-11-15 20:18:00 -05:00
|
|
|
.B \-v
|
1986-11-24 16:14:45 -05:00
|
|
|
] [
|
2013-05-30 00:00:09 -07:00
|
|
|
.B \-V
|
|
|
|
|
] [
|
1986-11-24 16:14:45 -05:00
|
|
|
.B \-c
|
2013-05-30 00:00:09 -07:00
|
|
|
[loyear,]hiyear ] [
|
|
|
|
|
.B \-t
|
|
|
|
|
[lotime,]hitime ] [ zonename ... ]
|
1986-11-15 20:18:00 -05:00
|
|
|
.SH DESCRIPTION
|
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
|
2003-07-29 13:12:49 -04:00
|
|
|
.BI "\-\-version"
|
|
|
|
|
Output version information and exit.
|
|
|
|
|
.TP
|
1986-11-15 20:18:00 -05:00
|
|
|
.B \-v
|
|
|
|
|
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,
|
|
|
|
|
and the time at the highest possible time value,
|
1986-11-15 20:18:00 -05:00
|
|
|
Each line ends with
|
|
|
|
|
.B isdst=1
|
|
|
|
|
if the given time is Daylight Saving Time or
|
|
|
|
|
.B isdst=0
|
|
|
|
|
otherwise.
|
2013-05-30 00:00:09 -07:00
|
|
|
.TP
|
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
|
|
|
.B \-V
|
|
|
|
|
Like
|
|
|
|
|
.BR \-v ,
|
|
|
|
|
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
|
2004-11-18 12:21:01 -05:00
|
|
|
.BI "\-c " [loyear,]hiyear
|
2004-11-18 12:30:05 -05:00
|
|
|
Cut off verbose output near the start of the given year(s).
|
2013-05-30 00:00:09 -07:00
|
|
|
By default,
|
|
|
|
|
the program cuts off verbose output near the starts of the years \-500 and 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
|
|
|
|
|
.BI "\-t " [lotime,]hitime
|
|
|
|
|
Cut off verbose output at the start of the given time(s),
|
2013-05-30 00:00:09 -07:00
|
|
|
given in decimal seconds since 1970-01-01 00:00:00 UTC.
|
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.
|