14616d0f9Sopenharmony_cizdump(8) System Manager's Manual zdump(8) 24616d0f9Sopenharmony_ci 34616d0f9Sopenharmony_ciNAME 44616d0f9Sopenharmony_ci zdump - timezone dumper 54616d0f9Sopenharmony_ci 64616d0f9Sopenharmony_ciSYNOPSIS 74616d0f9Sopenharmony_ci zdump [ option ... ] [ timezone ... ] 84616d0f9Sopenharmony_ci 94616d0f9Sopenharmony_ciDESCRIPTION 104616d0f9Sopenharmony_ci The zdump program prints the current time in each timezone named on the 114616d0f9Sopenharmony_ci command line. 124616d0f9Sopenharmony_ci 134616d0f9Sopenharmony_ciOPTIONS 144616d0f9Sopenharmony_ci --version 154616d0f9Sopenharmony_ci Output version information and exit. 164616d0f9Sopenharmony_ci 174616d0f9Sopenharmony_ci --help Output short usage message and exit. 184616d0f9Sopenharmony_ci 194616d0f9Sopenharmony_ci -i Output a description of time intervals. For each timezone on 204616d0f9Sopenharmony_ci the command line, output an interval-format description of the 214616d0f9Sopenharmony_ci timezone. See "INTERVAL FORMAT" below. 224616d0f9Sopenharmony_ci 234616d0f9Sopenharmony_ci -v Output a verbose description of time intervals. For each 244616d0f9Sopenharmony_ci timezone on the command line, print the times at the two extreme 254616d0f9Sopenharmony_ci time values, the times (if present) at and just beyond the 264616d0f9Sopenharmony_ci boundaries of years that localtime(3) and gmtime(3) can 274616d0f9Sopenharmony_ci represent, and the times both one second before and exactly at 284616d0f9Sopenharmony_ci each detected time discontinuity. Each line is followed by 294616d0f9Sopenharmony_ci isdst=D where D is positive, zero, or negative depending on 304616d0f9Sopenharmony_ci whether the given time is daylight saving time, standard time, 314616d0f9Sopenharmony_ci or an unknown time type, respectively. Each line is also 324616d0f9Sopenharmony_ci followed by gmtoff=N if the given local time is known to be N 334616d0f9Sopenharmony_ci seconds east of Greenwich. 344616d0f9Sopenharmony_ci 354616d0f9Sopenharmony_ci -V Like -v, except omit output concerning extreme time and year 364616d0f9Sopenharmony_ci values. This generates output that is easier to compare to that 374616d0f9Sopenharmony_ci of implementations with different time representations. 384616d0f9Sopenharmony_ci 394616d0f9Sopenharmony_ci -c [loyear,]hiyear 404616d0f9Sopenharmony_ci Cut off interval output at the given year(s). Cutoff times are 414616d0f9Sopenharmony_ci computed using the proleptic Gregorian calendar with year 0 and 424616d0f9Sopenharmony_ci with Universal Time (UT) ignoring leap seconds. Cutoffs are at 434616d0f9Sopenharmony_ci the start of each year, where the lower-bound timestamp is 444616d0f9Sopenharmony_ci inclusive and the upper is exclusive; for example, -c 1970,2070 454616d0f9Sopenharmony_ci selects transitions on or after 1970-01-01 00:00:00 UTC and 464616d0f9Sopenharmony_ci before 2070-01-01 00:00:00 UTC. The default cutoff is 474616d0f9Sopenharmony_ci -500,2500. 484616d0f9Sopenharmony_ci 494616d0f9Sopenharmony_ci -t [lotime,]hitime 504616d0f9Sopenharmony_ci Cut off interval output at the given time(s), given in decimal 514616d0f9Sopenharmony_ci seconds since 1970-01-01 00:00:00 Coordinated Universal Time 524616d0f9Sopenharmony_ci (UTC). The timezone determines whether the count includes leap 534616d0f9Sopenharmony_ci seconds. As with -c, the cutoff's lower bound is inclusive and 544616d0f9Sopenharmony_ci its upper bound is exclusive. 554616d0f9Sopenharmony_ci 564616d0f9Sopenharmony_ciINTERVAL FORMAT 574616d0f9Sopenharmony_ci The interval format is a compact text representation that is intended 584616d0f9Sopenharmony_ci to be both human- and machine-readable. It consists of an empty line, 594616d0f9Sopenharmony_ci then a line "TZ=string" where string is a double-quoted string giving 604616d0f9Sopenharmony_ci the timezone, a second line "- - interval" describing the time interval 614616d0f9Sopenharmony_ci before the first transition if any, and zero or more following lines 624616d0f9Sopenharmony_ci "date time interval", one line for each transition time and following 634616d0f9Sopenharmony_ci interval. Fields are separated by single tabs. 644616d0f9Sopenharmony_ci 654616d0f9Sopenharmony_ci Dates are in yyyy-mm-dd format and times are in 24-hour hh:mm:ss format 664616d0f9Sopenharmony_ci where hh<24. Times are in local time immediately after the transition. 674616d0f9Sopenharmony_ci A time interval description consists of a UT offset in signed +-hhmmss 684616d0f9Sopenharmony_ci format, a time zone abbreviation, and an isdst flag. An abbreviation 694616d0f9Sopenharmony_ci that equals the UT offset is omitted; other abbreviations are double- 704616d0f9Sopenharmony_ci quoted strings unless they consist of one or more alphabetic 714616d0f9Sopenharmony_ci characters. An isdst flag is omitted for standard time, and otherwise 724616d0f9Sopenharmony_ci is a decimal integer that is unsigned and positive (typically 1) for 734616d0f9Sopenharmony_ci daylight saving time and negative for unknown. 744616d0f9Sopenharmony_ci 754616d0f9Sopenharmony_ci In times and in UT offsets with absolute value less than 100 hours, the 764616d0f9Sopenharmony_ci seconds are omitted if they are zero, and the minutes are also omitted 774616d0f9Sopenharmony_ci if they are also zero. Positive UT offsets are east of Greenwich. The 784616d0f9Sopenharmony_ci UT offset -00 denotes a UT placeholder in areas where the actual offset 794616d0f9Sopenharmony_ci is unspecified; by convention, this occurs when the UT offset is zero 804616d0f9Sopenharmony_ci and the time zone abbreviation begins with "-" or is "zzz". 814616d0f9Sopenharmony_ci 824616d0f9Sopenharmony_ci In double-quoted strings, escape sequences represent unusual 834616d0f9Sopenharmony_ci characters. The escape sequences are \s for space, and \", \\, \f, \n, 844616d0f9Sopenharmony_ci \r, \t, and \v with their usual meaning in the C programming language. 854616d0f9Sopenharmony_ci E.g., the double-quoted string ""CET\s\"\\"" represents the character 864616d0f9Sopenharmony_ci sequence "CET "\". 874616d0f9Sopenharmony_ci 884616d0f9Sopenharmony_ci Here is an example of the output, with the leading empty line omitted. 894616d0f9Sopenharmony_ci (This example is shown with tab stops set far enough apart so that the 904616d0f9Sopenharmony_ci tabbed columns line up.) 914616d0f9Sopenharmony_ci 924616d0f9Sopenharmony_ci TZ="Pacific/Honolulu" 934616d0f9Sopenharmony_ci - - -103126 LMT 944616d0f9Sopenharmony_ci 1896-01-13 12:01:26 -1030 HST 954616d0f9Sopenharmony_ci 1933-04-30 03 -0930 HDT 1 964616d0f9Sopenharmony_ci 1933-05-21 11 -1030 HST 974616d0f9Sopenharmony_ci 1942-02-09 03 -0930 HWT 1 984616d0f9Sopenharmony_ci 1945-08-14 13:30 -0930 HPT 1 994616d0f9Sopenharmony_ci 1945-09-30 01 -1030 HST 1004616d0f9Sopenharmony_ci 1947-06-08 02:30 -10 HST 1014616d0f9Sopenharmony_ci 1024616d0f9Sopenharmony_ci Here, local time begins 10 hours, 31 minutes and 26 seconds west of UT, 1034616d0f9Sopenharmony_ci and is a standard time abbreviated LMT. Immediately after the first 1044616d0f9Sopenharmony_ci transition, the date is 1896-01-13 and the time is 12:01:26, and the 1054616d0f9Sopenharmony_ci following time interval is 10.5 hours west of UT, a standard time 1064616d0f9Sopenharmony_ci abbreviated HST. Immediately after the second transition, the date is 1074616d0f9Sopenharmony_ci 1933-04-30 and the time is 03:00:00 and the following time interval is 1084616d0f9Sopenharmony_ci 9.5 hours west of UT, is abbreviated HDT, and is daylight saving time. 1094616d0f9Sopenharmony_ci Immediately after the last transition the date is 1947-06-08 and the 1104616d0f9Sopenharmony_ci time is 02:30:00, and the following time interval is 10 hours west of 1114616d0f9Sopenharmony_ci UT, a standard time abbreviated HST. 1124616d0f9Sopenharmony_ci 1134616d0f9Sopenharmony_ci Here are excerpts from another example: 1144616d0f9Sopenharmony_ci 1154616d0f9Sopenharmony_ci TZ="Europe/Astrakhan" 1164616d0f9Sopenharmony_ci - - +031212 LMT 1174616d0f9Sopenharmony_ci 1924-04-30 23:47:48 +03 1184616d0f9Sopenharmony_ci 1930-06-21 01 +04 1194616d0f9Sopenharmony_ci 1981-04-01 01 +05 1 1204616d0f9Sopenharmony_ci 1981-09-30 23 +04 1214616d0f9Sopenharmony_ci ... 1224616d0f9Sopenharmony_ci 2014-10-26 01 +03 1234616d0f9Sopenharmony_ci 2016-03-27 03 +04 1244616d0f9Sopenharmony_ci 1254616d0f9Sopenharmony_ci This time zone is east of UT, so its UT offsets are positive. Also, 1264616d0f9Sopenharmony_ci many of its time zone abbreviations are omitted since they duplicate 1274616d0f9Sopenharmony_ci the text of the UT offset. 1284616d0f9Sopenharmony_ci 1294616d0f9Sopenharmony_ciLIMITATIONS 1304616d0f9Sopenharmony_ci Time discontinuities are found by sampling the results returned by 1314616d0f9Sopenharmony_ci localtime(3) at twelve-hour intervals. This works in all real-world 1324616d0f9Sopenharmony_ci cases; one can construct artificial time zones for which this fails. 1334616d0f9Sopenharmony_ci 1344616d0f9Sopenharmony_ci In the -v and -V output, "UT" denotes the value returned by gmtime(3), 1354616d0f9Sopenharmony_ci which uses UTC for modern timestamps and some other UT flavor for 1364616d0f9Sopenharmony_ci timestamps that predate the introduction of UTC. No attempt is 1374616d0f9Sopenharmony_ci currently made to have the output use "UTC" for newer and "UT" for 1384616d0f9Sopenharmony_ci older timestamps, partly because the exact date of the introduction of 1394616d0f9Sopenharmony_ci UTC is problematic. 1404616d0f9Sopenharmony_ci 1414616d0f9Sopenharmony_ciSEE ALSO 1424616d0f9Sopenharmony_ci tzfile(5), zic(8) 1434616d0f9Sopenharmony_ci 1444616d0f9Sopenharmony_ciTime Zone Database zdump(8) 145