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