1*0a6a1f1dSLionel Sambuc.\" $NetBSD: zdump.8,v 1.14 2014/10/23 18:45:58 christos Exp $ 2*0a6a1f1dSLionel Sambuc.Dd October 23, 2014 32fe8fb19SBen Gras.Dt ZDUMP 8 42fe8fb19SBen Gras.Os 52fe8fb19SBen Gras.Sh NAME 62fe8fb19SBen Gras.Nm zdump 72fe8fb19SBen Gras.Nd time zone dumper 82fe8fb19SBen Gras.Sh SYNOPSIS 92fe8fb19SBen Gras.Nm zdump 102fe8fb19SBen Gras.Op Fl \-version 112fe8fb19SBen Gras.Op Fl v 1284d9c625SLionel Sambuc.Op Fl V 132fe8fb19SBen Gras.Op Fl c Ar [loyear,]highyear 142fe8fb19SBen Gras.Op Ar zonename ... 1584d9c625SLionel Sambuc.Nm zdump 1684d9c625SLionel Sambuc.Fl t 17*0a6a1f1dSLionel Sambuc.Ar [lotime,]hightime 1884d9c625SLionel Sambuc.Op Ar zonename ... 192fe8fb19SBen Gras.Sh DESCRIPTION 202fe8fb19SBen Gras.Nm 212fe8fb19SBen Grasprints the current time in each 222fe8fb19SBen Gras.Ar zonename 232fe8fb19SBen Grasnamed on the command line. 242fe8fb19SBen Gras.Pp 252fe8fb19SBen GrasThese options are available: 262fe8fb19SBen Gras.Bl -tag -width XXXXXXXXX -compact 272fe8fb19SBen Gras.It Fl \-version 282fe8fb19SBen GrasOutput version information and exit. 292fe8fb19SBen Gras.It Fl v 302fe8fb19SBen GrasFor each 312fe8fb19SBen Gras.Ar zonename 322fe8fb19SBen Grason the command line, 332fe8fb19SBen Grasprint the time at the lowest possible time value, 342fe8fb19SBen Grasthe time one day after the lowest possible time value, 352fe8fb19SBen Grasthe times both one second before and exactly at 362fe8fb19SBen Graseach detected time discontinuity, 372fe8fb19SBen Grasthe time at one day less than the highest possible time value, 38*0a6a1f1dSLionel Sambucand the time at the highest possible time value. 39*0a6a1f1dSLionel SambucEach line is followed by 40*0a6a1f1dSLionel Sambuc.Dl isdst= D 41*0a6a1f1dSLionel Sambucwhere 42*0a6a1f1dSLionel Sambuc.Dl D 43*0a6a1f1dSLionel Sambucis positive, zero, or negative depending on whether 44*0a6a1f1dSLionel Sambucthe given time is daylight saving time, standard time, 45*0a6a1f1dSLionel Sambucor an unknown time type, respectively. 46*0a6a1f1dSLionel SambucEach line is also followed by 47*0a6a1f1dSLionel Sambuc.Dl gmtoff= N 48*0a6a1f1dSLionel Sambucif the given local time is known to be 49*0a6a1f1dSLionel Sambuc.D N 50*0a6a1f1dSLionel Sambucseconds east of Greenwich. 512fe8fb19SBen Gras.It Fl c Ar [loyear,]highyear 52*0a6a1f1dSLionel SambucCut off verbose output at the given year(s). 53*0a6a1f1dSLionel SambucCutoff times are computed using the proleptic Gregorian calendar with year 0 54*0a6a1f1dSLionel Sambucand with Universal Time (UT) ignoring leap seconds. 55*0a6a1f1dSLionel SambucThe lower bound is exclusive and the upper is inclusive; for example, a 56*0a6a1f1dSLionel Sambuc.Dl loyear 57*0a6a1f1dSLionel Sambucof 1970 excludes a transition occurring at 1970-01-01 00:00:00 UTC but a 58*0a6a1f1dSLionel Sambuc.Dl hiyear 59*0a6a1f1dSLionel Sambucof 1970 includes the transition. 60*0a6a1f1dSLionel SambucThe default cutoff is 61*0a6a1f1dSLionel Sambuc.Dl \*-500,2500 . 62*0a6a1f1dSLionel Sambuc.It Fl t Ar [lotime,]hightime 63*0a6a1f1dSLionel SambucCut off verbose output at the given time(s), 64*0a6a1f1dSLionel Sambucgiven in decimal seconds since 1970-01-01 00:00:00 65*0a6a1f1dSLionel SambucCoordinated Universal Time (UTC). 66*0a6a1f1dSLionel SambucThe 67*0a6a1f1dSLionel Sambuc.Ar zonename 68*0a6a1f1dSLionel Sambucdetermines whether the count includes leap seconds. 69*0a6a1f1dSLionel SambucAs with 70*0a6a1f1dSLionel Sambuc.Fl c , 71*0a6a1f1dSLionel Sambucthe cutoff's lower bound is exclusive and its upper bound is inclusive. 7284d9c625SLionel Sambuc.It Fl V 7384d9c625SLionel SambucLike 7484d9c625SLionel Sambuc.Fl v , 7584d9c625SLionel Sambucexcept omit the times relative to the extreme time values. 7684d9c625SLionel SambucThis generates output that is easier to compare to that of 7784d9c625SLionel Sambucimplementations with different time representations. 782fe8fb19SBen Gras.El 792fe8fb19SBen Gras.Sh LIMITATIONS 802fe8fb19SBen GrasTime discontinuities are found by sampling the results returned by localtime 812fe8fb19SBen Grasat twelve-hour intervals. 822fe8fb19SBen GrasThis works in all real-world cases; 832fe8fb19SBen Grasone can construct artificial time zones for which this fails. 8484d9c625SLionel Sambuc.Pp 8584d9c625SLionel SambucIn the output, 8684d9c625SLionel Sambuc.Dq UT 8784d9c625SLionel Sambucdenotes the value returned by 8884d9c625SLionel Sambuc.Xr gmtime 3 , 8984d9c625SLionel Sambucwhich uses UTC for modern time stamps and some other UT flavor for 9084d9c625SLionel Sambuctime stamps that predate the introduction of UTC. 9184d9c625SLionel SambucNo attempt is currently made to have the output use 9284d9c625SLionel Sambuc.Dq UTC 9384d9c625SLionel Sambucfor newer and 9484d9c625SLionel Sambuc.Dq UT 9584d9c625SLionel Sambucfor older time stamps, 9684d9c625SLionel Sambucpartly because the exact date of the introduction of UTC is problematic. 972fe8fb19SBen Gras.Sh SEE ALSO 982fe8fb19SBen Gras.Xr ctime 3 , 992fe8fb19SBen Gras.Xr tzfile 5 , 1002fe8fb19SBen Gras.Xr zic 8 1012fe8fb19SBen Gras.\" @(#)zdump.8 8.2 1022fe8fb19SBen Gras.\" This file is in the public domain, so clarified as of 1032fe8fb19SBen Gras.\" 2009-05-17 by Arthur David Olson. 104