1.\" This file is in the public domain, so clarified as of 2.\" 2009-05-17 by Arthur David Olson. 3.Dd March 8, 2026 4.Dt ZIC 8 5.Os 6.Sh NAME 7.Nm zic 8.Nd timezone compiler 9.Sh SYNOPSIS 10.Nm 11.Op Fl -help 12.Op Fl -version 13.Op Fl Dsv 14.Op Fl b Ar slim | fat 15.Op Fl d Ar directory 16.Op Fl l Ar localtime 17.Op Fl L Ar leapseconds 18.Op Fl m Ar mode 19.Op Fl p Ar posixrules 20.Oo 21.Fl r 22.Op @ Ns Ar lo Ns 23.Op /@ Ns Ar hi 24.Oc 25.Op Fl R @ Ns Ar hi 26.Op Fl t Ar localtime-link 27.Op Fl u Ar owner Ns Op Li : Ns Ar group 28.Op Ar filename ... 29.Sh DESCRIPTION 30The 31.Nm 32program reads text from the file(s) named on the command line 33and creates the timezone information format (TZif) files 34specified in this input. 35If a 36.Ar filename 37is 38.Dq "-" , 39standard input is read. 40.Pp 41The following options are available: 42.Bl -tag -width indent 43.It Fl -version 44Output version information and exit. 45.It Fl -help 46Output short usage message and exit. 47.It Fl b Ar bloat 48Output backward-compatibility data as specified by 49.Ar bloat . 50If 51.Ar bloat 52is 53.Cm fat , 54generate additional data entries that work around potential bugs or 55incompatibilities in older software, such as software that mishandles 56a TZif file's 64-bit data or proleptic TZ string. 57If 58.Ar bloat 59is 60.Cm slim , 61keep the output files small; this can help check for the bugs 62and incompatibilities. 63The default is 64.Cm slim , 65as the 66.Cm fat 67workarounds are typically good only until the year 2038 anyway. 68Also see the 69.Fl r 70option for another way to alter output size. 71.It Fl D 72Do not create ancestor directories of output files, 73For example, for a zone named America/Los_Angeles 74the directory America should already exist. 75By default, the directory and its ancestors are created 76if they do not already exist. 77.It Fl d Ar directory 78Create time conversion information files in the named directory rather than 79in the standard directory named below. 80.It Fl l Ar timezone 81Use 82.Ar timezone 83as local time. 84The 85.Nm 86utility 87will act as if the input contained a link line of the form 88.Bd -literal -offset indent 89Link timezone localtime 90.Ed 91.Pp 92If 93.Ar timezone 94is 95.Ql - , 96any already-existing link is removed. 97.It Fl L Ar filename 98Read leap second information from the file with the given name. 99If this option is not used, 100no leap second information appears in output files; 101this is required by some TZif readers. 102.It Fl p Ar timezone 103Act as if the input contained a link line of the form 104.Bd -literal -offset indent 105Link \fItimezone\fP posixrules 106.Ed 107.Pp 108If 109.Ar timezone 110is 111.Dq "\-" 112(the default), any already-existing link is removed. 113.Pp 114Unless 115.Ar timezone 116is 117.Dq "\-" , 118this option is obsolete and is no longer supported by most runtimes. 119Among other things it should not be used for timestamps after the year 2037, 120and it should not be combined with 121.Fl b Cm slim 122if 123.Ar timezone 's 124transitions are at standard time or Universal Time (UT) instead of local time. 125The option is present only to support obsolete runtimes that used 126.Ar timezone 's 127rules when handling obsolescent 128TZ strings like "AST4ADT" that lack transition rules; 129modern runtimes that support these TZ strings 130typically just use current US rules 131as the TZ strings were mainly used in the US. 132Similarly, any Zone or Link named "posixrules" is obsolete and problematic. 133.It Fl m Ar mode 134Create TZif files with the given file mode bits. 135By default the files are created with mode 644 as modified by the umask. 136With this option they are created with the given mode instead. 137For portability the mode should be an unsigned octal integer, 138typically 644 or 444; 139some platforms also support 140.Xr chmod 1 -style 141symbolic modes. 142This option does not affect created ancestor directories, 143which have mode 755 as modified by the umask. 144The option is ignored on platforms lacking the notion of file mode bits. 145.It Fl r Oo @ Ns Ar lo Oc Ns Oo /@ Ns Ar hi Oc 146Limit the applicability of output files 147to timestamps in the range from 148.Ar lo 149(inclusive) to 150.Ar hi 151(exclusive), where 152.Ar lo 153and 154.Ar hi 155are possibly signed decimal counts of seconds since the Epoch 156(1970-01-01 00:00:00 UTC). 157Omitted counts default to extreme values. 158The output files use UT offset 0 and abbreviation 159.Dq "\-00" 160in place of the omitted timestamp data. 161For example, 162.Fl r @0 163omits data intended for negative timestamps (i.e., before the Epoch), and 164.Fl r @0/@2147483648 165outputs data intended only for nonnegative timestamps that fit into 16631-bit signed integers. 167On platforms with GNU 168.Nm date , 169.Dq "zic \-r @$(date +%s)" 170omits data intended for past timestamps. 171Although this option typically reduces the output file's size, 172the size can increase due to the need to represent the timestamp range 173boundaries, particularly if 174.Ar hi 175causes a TZif file to contain explicit entries for 176.Em pre- 177.Ar hi 178transitions rather than concisely representing them 179with a proleptic TZ string. 180Also see the 181.Fl b Cm slim 182option for another way to shrink output size. 183.It Fl R @ Ns Ar hi 184Generate redundant trailing explicit transitions for timestamps 185that occur less than 186.Ar hi 187seconds since the Epoch, even though the transitions could be 188more concisely represented via the proleptic TZ string. 189This option does not affect the represented timestamps. 190Although it accommodates nonstandard TZif readers 191that ignore the proleptic TZ string, 192it increases the size of the altered output files. 193.It Fl t Ar file 194When creating local time information, put the configuration link in 195the named file rather than in the standard location. 196.It Fl u Ar owner Ns Op Li : Ns Ar group 197Change the output regular files' owner and group to those specified. 198The 199.Ar owner 200is either a user name, or an unsigned decimal integer user ID, 201or an empty string meaning no change to the owner. 202The 203.Ar group 204is similar for group names and IDs. 205This option does not affect directories or hard or symbolic links. 206It typically needs special privileges to change ownership, 207and is ignored on platforms that lack the notions of owners and groups. 208.It Fl v 209Be more verbose, and complain about the following situations: 210.Bl -bullet 211.It 212The input specifies a link to a link, 213something not supported by some older parsers, including 214.Nm 215itself through release 2022e. 216.It 217A year that appears in a data file is outside the range 218of representable years. 219.It 220A time of 24:00 or more appears in the input. 221Pre-1998 versions of 222.Nm 223prohibit 24:00, and pre-2007 versions prohibit times greater than 24:00. 224.It 225A rule goes past the start or end of the month. 226Pre-2004 versions of 227.Nm 228prohibit this. 229.It 230A time zone abbreviation uses a 231.Ql %z 232format. 233Pre-2015 versions of 234.Nm 235do not support this. 236.It 237A timestamp contains fractional seconds. 238Pre-2018 versions of 239.Nm 240do not support this. 241.It 242The input contains abbreviations that are mishandled by pre-2018 versions of 243.Nm 244due to a longstanding coding bug. 245These abbreviations include 246.Dq L 247for 248.Dq Link , 249.Dq mi 250for 251.Dq min , 252.Dq Sa 253for 254.Dq Sat , 255and 256.Dq Su 257for 258.Dq Sun . 259.It 260The output file does not contain all the information about the 261long-term future of a timezone, because the future cannot be summarized as 262a proleptic TZ string. For example, as of 2026 this problem 263occurs for Palestine's daylight-saving rules, as these rules are based 264on predictions for when Ramadan will be observed, something that 265a proleptic TZ string cannot represent. 266.It 267The output contains data that may not be handled properly by client 268code designed for older 269.Nm 270output formats. 271These compatibility issues affect only timestamps 272before 1970 or after the start of 2038. 273.It 274The output contains a truncated leap second table, 275which can cause some older TZif readers to misbehave. 276This can occur if the 277.Fl L 278option is used, and either an Expires line is present or 279the 280.Fl r 281option is also used. 282.It 283The output file contains more than 1200 transitions, 284which may be mishandled by some clients. 285The current reference client supports at most 2000 transitions; 286pre-2014 versions of the reference client support at most 1200 287transitions. 288.It 289A time zone abbreviation has fewer than 3 or more than 6 characters. 290POSIX requires at least 3, and requires implementations to support 291at least 6. 292.It 293An output file name contains a byte that is not an ASCII letter, 294.Dq "\-" , 295.Dq "/" , 296or 297.Dq "_" ; 298or it contains a file name component that contains more than 14 bytes 299or that starts with 300.Dq "\-" . 301.El 302.El 303.RE 304.Sh FILES 305Input files use the format described in this section; output files use 306.Xr tzfile 5 307format. 308.Pp 309Input files should be text files, that is, they should be a series of 310zero or more lines, each ending in a newline byte and containing at 311most 2048 bytes counting the newline, and without any NUL bytes. 312The input text's encoding 313is typically UTF-8 or ASCII; it should have a unibyte representation 314for the 315.Lk "https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap06.html" "POSIX Portable Character Set (PPCS)" 316and the encoding's non-unibyte characters should consist entirely of 317non-PPCS bytes. 318Non-PPCS characters typically occur only in comments. 319.Pp 320Input lines are made up of fields. 321Fields are separated from one another by one or more white space characters. 322The white space characters are space, form feed, carriage return, newline, 323tab, and vertical tab. 324Leading and trailing white space on input lines is ignored. 325An unquoted sharp character (\(sh) in the input introduces a comment which extends 326to the end of the line the sharp character appears on. 327White space characters and sharp characters may be enclosed in double quotes 328(\(dq) if they're to be used as part of a field. 329Any line that is blank (after comment stripping) is ignored. 330Nonblank lines are expected to be of one of three types: 331rule lines, zone lines, and link lines. 332.Pp 333Keywords are in English and are case insensitive. 334They are not reserved words. 335They appear in several contexts, and include month and weekday names 336and other words such as 337.Dq "maximum" , 338.Dq "only" , 339.Dq "Rolling" , 340and 341.Dq "Zone" . 342A keyword can be abbreviated by omitting all but an initial prefix; any 343abbreviation must be unambiguous in context. 344.Pp 345A rule line has the form 346.Bd -literal 347Rule NAME FROM TO \- IN ON AT SAVE LETTER/S 348.Ed 349.Pp 350For example: 351.Bd -literal 352Rule US 1967 1973 \- Apr lastSun 2:00w 1:00d D 353.Ed 354.Pp 355The fields that make up a rule line are: 356.Bl -tag -width "LETTER/S" 357.It NAME 358Gives the name of the rule set that contains this line. 359The name must start with a character that is neither 360an ASCII digit nor 361.Dq \- 362nor 363.Dq + . 364To allow for future extensions, 365an unquoted name should not contain characters from the set 366.Dq Ql "!$%&'()*,/:;<=>?@[\]^`{|}~" . 367.It FROM 368Gives the first year in which the rule applies. 369Any signed integer year can be supplied; the proleptic Gregorian calendar 370is assumed, with year 0 preceding year 1. 371Rules can describe times that are not representable as time values, 372with the unrepresentable times ignored; this allows rules to be portable 373among hosts with differing time value types. 374.It TO 375Gives the final year in which the rule applies. 376The word 377.Cm maximum 378(or an abbreviation) means the indefinite future, and the word 379.Cm only 380(or an abbreviation) 381may be used to repeat the value of the 382.Ar FROM 383field. 384.It \- 385Is a reserved field and should always contain 386.Ql \- 387for compatibility with older versions of 388.Nm . 389It was previously known as the 390.Ar TYPE 391field, which could contain values to allow a 392separate script to further restrict in which 393.Dq types 394of years the rule would apply. 395.It IN 396Names the month in which the rule takes effect. 397Month names may be abbreviated as mentioned previously; 398for example, January can appear as 399.Dq January , 400.Dq JANU 401or 402.Dq Ja , 403but not as 404.Dq j 405which would be ambiguous with both June and July. 406.It ON 407Gives the day on which the rule takes effect. 408Recognized forms include: 409.Bl -tag -compact -width "Sun<=25" 410.It 5 411the fifth of the month 412.It lastSun 413the last Sunday in the month 414.It lastMon 415the last Monday in the month 416.It Sun>=8 417first Sunday on or after the eighth 418.It Sun<=25 419last Sunday on or before the 25th 420.El 421.Pp 422A weekday name (e.g., 423.Ql "Sunday" ) 424or a weekday name preceded by 425.Dq "last" 426(e.g., 427.Ql "lastSunday" ) 428may be abbreviated as mentioned previously, 429e.g., 430.Dq Su 431for Sunday and 432.Dq lastsa 433for the last Saturday. 434There must be no white space characters within the 435.Ar ON 436field. 437The 438.Dq <= 439and 440.Dq >= 441constructs can result in a day in the neighboring month; 442for example, the IN-ON combination 443.Dq "Oct Sun>=31" 444stands for the first Sunday on or after October 31, 445even if that Sunday occurs in November. 446.It AT 447Gives the time of day at which the rule takes effect, 448relative to 00:00, the start of a calendar day. 449Recognized forms include: 450.Bl -tag -compact -width "00:19:32.13" 451.It 2 452time in hours 453.It 2:00 454time in hours and minutes 455.It 01:28:14 456time in hours, minutes, and seconds 457.It 00:19:32.13 458time with fractional seconds 459.It 12:00 460midday, 12 hours after 00:00 461.It 15:00 4623 PM, 15 hours after 00:00 463.It 24:00 464end of day, 24 hours after 00:00 465.It 260:00 466260 hours after 00:00 467.It \-2:30 4682.5 hours before 00:00 469.It \- 470equivalent to 0 471.El 472.Pp 473Although 474.Nm 475rounds times to the nearest integer second 476(breaking ties to the even integer), the fractions may be useful 477to other applications requiring greater precision. 478The source format does not specify any maximum precision. 479Any of these forms may be followed by the letter 480.Ql w 481if the given time is local or 482.Dq "wall clock" 483time, 484.Ql s 485if the given time is standard time without any adjustment for daylight saving, 486or 487.Ql u 488(or 489.Ql g 490or 491.Ql z ) 492if the given time is universal time; 493in the absence of an indicator, 494local (wall clock) time is assumed. 495These forms ignore leap seconds; for example, 496if a leap second occurs at 00:59:60 local time, 497.Ql "1:00" 498stands for 3601 seconds after local midnight instead of the usual 3600 seconds. 499The intent is that a rule line describes the instants when a 500clock/calendar set to the type of time specified in the 501.Ar AT 502field would show the specified date and time of day. 503.It SAVE 504Gives the amount of time to be added to local standard time when the rule is in 505effect, and whether the resulting time is standard or daylight saving. 506This field has the same format as the 507.Ar AT 508field 509except with a different set of suffix letters: 510.Ql s 511for standard time and 512.Ql d 513for daylight saving time. 514The suffix letter is typically omitted, and defaults to 515.Ql s 516if the offset is zero and to 517.Ql d 518otherwise. 519Negative offsets are allowed; in Ireland, for example, daylight saving 520time is observed in winter and has a negative offset relative to 521Irish Standard Time. 522The offset is merely added to standard time; for example, 523.Nm 524does not distinguish a 10:30 standard time plus an 0:30 525.Ar SAVE 526from a 10:00 standard time plus a 1:00 527.Ar SAVE . 528.It LETTER/S 529Gives the 530.Dq "variable part" 531(for example, the 532.Dq "S" 533or 534.Dq "D" 535in 536.Dq "EST" 537or 538.Dq "EDT" ) 539of time zone abbreviations to be used when this rule is in effect. 540If this field is 541.Ql \- , 542the variable part is null. 543.El 544.Pp 545A zone line has the form 546.Bd -literal -offset indent 547Zone NAME STDOFF RULES FORMAT [UNTIL] 548.Ed 549.Pp 550For example: 551.Bd -literal -offset indent 552Zone Asia/Amman 2:00 Jordan EE%sT 2017 Oct 27 01:00 553.Ed 554.Pp 555The fields that make up a zone line are: 556.Bl -tag -width "STDOFF" 557.It NAME 558The name of the timezone. 559This is the name used in creating the time conversion information file for the 560timezone. 561It should not contain a file name component 562that is empty or is 563.Dq ".\&" 564or 565.Dq ".." ; 566a file name component is a maximal substring that does not contain 567.Dq "/" . 568Names can be further restricted by the operating system or file system. 569Most systems reject a name 570.Ar "A / B" 571if there is another name 572.Ar A , 573some reject names differing only in case, 574and some reject names containing special characters like 575.Sq ":" 576and 577.Sq "\e" . 578Other software will work better if names are 579limited to the restricted syntax described under the 580.Fl v 581option. 582.It STDOFF 583The amount of time to add to UT to get standard time, 584without any adjustment for daylight saving. 585This field has the same format as the 586.Ar AT 587and 588.Ar SAVE 589fields of rule lines, except without suffix letters; 590begin the field with a minus sign if time must be subtracted from UT. 591.It RULES 592The name of the rules that apply in the timezone or, 593alternatively, a field in the same format as a rule-line 594.Ar SAVE 595field, 596giving the amount of time to be added to local standard time 597and whether the resulting time is standard or daylight saving. 598Standard time applies if this field is 599.Ql \- 600or for timestamps occurring before any rule takes effect. 601When an amount of time is given, only the sum of standard time and 602this amount matters. 603.It FORMAT 604The format for time zone abbreviations. 605The pair of characters 606.Ql %s 607shows where to put the time zone abbreviation's variable part, 608which is taken from the 609.Ar LETTER/S 610field of the corresponding rule; 611any timestamps that precede the earliest rule use the 612.Ar LETTER/S 613of the earliest standard-time rule (which in this case must exist). 614Alternatively, a format can use the pair of characters 615.Ql %z 616to stand for the UT offset in the form 617.Ar \(+- hh , 618.Ar \(+- hhmm , 619or 620.Ar \(+- hhmmss , 621using the shortest form that does not lose information, where 622.Ar hh , 623.Ar mm , 624and 625.Ar ss 626are the hours, minutes, and seconds east (+) or west (\-) of UT. 627Alternatively, 628a slash (/) 629separates standard and daylight abbreviations. 630To conform to POSIX, a time zone abbreviation should contain only 631alphanumeric ASCII characters, 632.Ql "+" 633and 634.Ql "\-". 635By convention, the time zone abbreviation 636.Ql "\-00" 637is a placeholder that means local time is unspecified. 638.It UNTIL 639The time at which the UT offset or the rule(s) change for a location. 640It takes the form of one to four fields 641.Ar YEAR Op Ar MONTH Op Ar DAY Op Ar TIME . 642If this is specified, 643the time zone information is generated from the given UT offset 644and rule change until the time specified, which is interpreted using 645the rules in effect just before the transition. 646The month, day, and time of day have the same format as the 647.Ar IN , 648.Ar ON , 649and 650.Ar AT 651fields of a rule; trailing fields can be omitted, and default to the 652earliest possible value for the missing fields. 653.IP 654The next line must be a 655.Dq "continuation" 656line; this has the same form as a zone line except that the 657string 658.Dq "Zone" 659and the name are omitted, as the continuation line will 660place information starting at the time specified as the 661.Dq "until" 662information in the previous line in the file used by the previous line. 663Continuation lines may contain 664.Dq "until" 665information, just as zone lines do, indicating that the next line is a further 666continuation. 667.El 668.Pp 669If a zone changes at the same instant that a rule would otherwise take 670effect in the earlier zone or continuation line, the rule is ignored. 671A zone or continuation line 672.Ar L 673with a named rule set starts with standard time by default: 674that is, any of 675.Ar L 's 676timestamps preceding 677.Ar L 's 678earliest rule use the rule in effect after 679.Ar L 's 680first transition into standard time. 681In a single zone it is an error if two rules take effect at the same 682instant, or if two zone changes take effect at the same instant. 683.Pp 684If a continuation line subtracts 685.Ar N 686seconds from the UT offset after a transition that would be 687interpreted to be later if using the continuation line's UT offset and 688rules, the 689.Dq "until" 690time of the previous zone or continuation line is interpreted 691according to the continuation line's UT offset and rules, and any rule 692that would otherwise take effect in the next 693.Ar N 694seconds is instead assumed to take effect simultaneously. 695For example: 696.Bd -literal -offset indent 697# Rule NAME FROM TO - IN ON AT SAVE LETTER/S 698Rule US 1967 2006 - Oct lastSun 2:00 0 S 699Rule US 1967 1973 - Apr lastSun 2:00 1:00 D 700# Zone NAME STDOFF RULES FORMAT [UNTIL] 701Zone America/Menominee -5:00 - EST 1973 Apr 29 2:00 702 -6:00 US C%sT 703.Ed 704Here, an incorrect reading would be there were two clock changes on 1973-04-29, 705the first from 02:00 EST (\-05) to 01:00 CST (\-06) according to the 706.q "until" 707value in the zone line, 708and the second an hour later from 02:00 CST (\-06) to 03:00 CDT (\-05) 709according to the values in the April rule line. 710However, 711.Nm 712interprets this more sensibly as a single transition from 02:00 EST (\-05) to 71302:00 CDT (\-05). 714.Pp 715A link line has the form 716.Bd -literal -offset indent 717Link TARGET LINK-NAME 718.Ed 719where 720.Ar TARGET 721and 722.Ar LINK-NAME 723both have the same syntax as a zone line's 724.Ar NAME . 725For example: 726.Bd -literal -offset indent 727Link Europe/Istanbul Asia/Istanbul 728.Ed 729.Pp 730The 731.Ar TARGET 732field should appear as the 733.Ar NAME 734field in some zone line or as the 735.Ar LINK-NAME 736field in some link line. 737The 738.Ar LINK-NAME 739field is an alternative name for that zone. 740Links can chain together, although the behavior is unspecified if a 741chain of one or more links does not terminate in a Zone name. 742A link line can appear before the line that defines the link target. 743For example: 744.Bd -literal -offset indent 745Link Greenwich G_M_T 746Link Etc/GMT Greenwich 747Zone Etc/GMT\0\00\0\0\-\0\0GMT 748.Ed 749.Pp 750The two links are chained together, and G_M_T, Greenwich, and Etc/GMT 751all name the same zone. 752.Pp 753Except for continuation lines, 754lines may appear in any order in the input. 755However, the behavior is unspecified if multiple zone or link lines 756define the same name. 757.Pp 758The file that describes leap seconds can have leap lines and an 759expiration line. 760Leap lines have the following form: 761.Bd -literal -offset indent 762Leap YEAR MONTH DAY HH:MM:SS CORR R/S 763.Ed 764.Pp 765For example: 766.Bd -literal -offset indent 767Leap 2016 Dec 31 23:59:60 + S 768.Ed 769.Pp 770The 771.Ar YEAR , 772.Ar MONTH , 773.Ar DAY , 774and 775.Ar HH:MM:SS 776fields tell when the leap second happened. 777The 778.Ar CORR 779field 780should be 781.Ql "+" 782if a second was added 783or 784.Ql "\-" 785if a second was skipped. 786The 787.Ar R/S 788field 789should be (an abbreviation of) 790.Dq "Stationary" 791if the leap second time given by the other fields should be interpreted as UTC 792or 793(an abbreviation of) 794.Dq "Rolling" 795if the leap second time given by the other fields should be interpreted as 796local (wall clock) time. 797.Pp 798Rolling leap seconds would let one see 799Times Square ball drops where there'd be a 800.Dq "3... 2... 1... leap... Happy New Year" 801countdown, placing the leap second at 802midnight New York time rather than midnight UTC. 803Although stationary leap seconds are the common practice, 804rolling leap seconds can be useful in specialized applications 805like SMPTE timecodes that may prefer to put leap second 806discontinuities at the end of a local broadcast day. 807However, rolling leap seconds are not supported if the 808.Fl r 809option is used. 810.Pp 811The expiration line, if present, has the form: 812.Bd -literal -offset indent 813Expires YEAR MONTH DAY HH:MM:SS 814.Ed 815.Pp 816For example: 817.Bd -literal -offset indent 818Expires 2020 Dec 28 00:00:00 819.Ed 820.Pp 821The 822.Ar YEAR , 823.Ar MONTH , 824.Ar DAY , 825and 826.Ar HH:MM:SS 827fields give the expiration timestamp in UTC for the leap second table. 828.Sh "EXTENDED EXAMPLE" 829Here is an extended example of 830.Nm 831input, intended to illustrate many of its features. 832.Bd -literal -offset indent 833# Rule NAME FROM TO \- IN ON AT SAVE LETTER/S 834Rule Swiss 1941 1942 \- May Mon>=1 1:00 1:00 S 835Rule Swiss 1941 1942 \- Oct Mon>=1 2:00 0 \- 836 837Rule EU 1977 1980 \- Apr Sun>=1 1:00u 1:00 S 838Rule EU 1977 only \- Sep lastSun 1:00u 0 \- 839Rule EU 1978 only \- Oct 1 1:00u 0 \- 840Rule EU 1979 1995 \- Sep lastSun 1:00u 0 \- 841Rule EU 1981 max \- Mar lastSun 1:00u 1:00 S 842Rule EU 1996 max \- Oct lastSun 1:00u 0 \- 843 844# Zone NAME STDOFF RULES FORMAT [UNTIL] 845Zone Europe/Zurich 0:34:08 \- LMT 1853 Jul 16 846 0:29:45.50 \- BMT 1894 Jun 847 1:00 Swiss CE%sT 1981 848 1:00 EU CE%sT 849 850Link Europe/Zurich Europe/Vaduz 851.Ed 852.Pp 853In this example, the EU rules are for the European Union 854and for its predecessor organization, the European Communities. 855The timezone is named Europe/Zurich and it has the alias Europe/Vaduz. 856This example says that Zurich was 34 minutes and 8 857seconds east of UT until 1853-07-16 at 00:00, when the legal offset 858was changed to 8597\(de26\(fm22.50\(sd, 860which works out to 0:29:45.50; 861.Nm 862treats this by rounding it to 0:29:46. 863After 1894-06-01 at 00:00 the UT offset became one hour 864and Swiss daylight saving rules (defined with lines beginning with 865.Dq "Rule Swiss") 866apply. 867From 1981 to the present, EU daylight saving rules have 868applied, and the UTC offset has remained at one hour. 869.Pp 870In 1941 and 1942, daylight saving time applied from the first Monday 871in May at 01:00 to the first Monday in October at 02:00. 872The pre-1981 EU daylight-saving rules have no effect 873here, but are included for completeness. 874Since 1981, daylight 875saving has begun on the last Sunday in March at 01:00 UTC. 876Until 1995 it ended the last Sunday in September at 01:00 UTC, 877but this changed to the last Sunday in October starting in 1996. 878.Pp 879For purposes of display, 880.Dq "LMT" 881and 882.Dq "BMT" 883were initially used, respectively. 884Since 885Swiss rules and later EU rules were applied, the time zone abbreviation 886has been CET for standard time and CEST for daylight saving 887time. 888.Sh FILES 889.Bl -tag -width "/usr/share/zoneinfo" 890.It Pa /etc/localtime 891Default local timezone file. 892.It Pa /usr/share/zoneinfo 893Default timezone information directory. 894.El 895.Sh NOTES 896For areas with more than two types of local time, 897you may need to use local standard time in the 898.Ar AT 899field of the earliest transition time's rule to ensure that 900the earliest transition time recorded in the compiled file is correct. 901.Pp 902If, 903for a particular timezone, 904a clock advance caused by the start of daylight saving 905coincides with and is equal to 906a clock retreat caused by a change in UT offset, 907.Nm 908produces a single transition to daylight saving at the new UT offset 909without any change in local (wall clock) time. 910To get separate transitions 911use multiple zone continuation lines 912specifying transition instants using universal time. 913.Sh SEE ALSO 914.Xr tzfile 5 , 915.Xr zdump 8 916