1255902Sedwin#
2255902Sedwin#	In the following text, the symbol '#' introduces
3273438Sdelphij#	a comment, which continues from that symbol until
4255902Sedwin#	the end of the line. A plain comment line has a
5255902Sedwin#	whitespace character following the comment indicator.
6273438Sdelphij#	There are also special comment lines defined below.
7273438Sdelphij#	A special comment will always have a non-whitespace
8255902Sedwin#	character in column 2.
9255902Sedwin#
10255902Sedwin#	A blank line should be ignored.
11255902Sedwin#
12255902Sedwin#	The following table shows the corrections that must
13255902Sedwin#	be applied to compute International Atomic Time (TAI)
14255902Sedwin#	from the Coordinated Universal Time (UTC) values that
15255902Sedwin#	are transmitted by almost all time services.
16255902Sedwin#
17255902Sedwin#	The first column shows an epoch as a number of seconds
18273438Sdelphij#	since 1 January 1900, 00:00:00 (1900.0 is also used to
19273438Sdelphij#	indicate the same epoch.) Both of these time stamp formats
20273438Sdelphij#	ignore the complexities of the time scales that were
21273438Sdelphij#	used before the current definition of UTC at the start
22273438Sdelphij#	of 1972. (See note 3 below.)
23273438Sdelphij#	The second column shows the number of seconds that
24273438Sdelphij#	must be added to UTC to compute TAI for any timestamp
25273438Sdelphij#	at or after that epoch. The value on each line is
26273438Sdelphij#	valid from the indicated initial instant until the
27273438Sdelphij#	epoch given on the next one or indefinitely into the
28273438Sdelphij#	future if there is no next line.
29255902Sedwin#	(The comment on each line shows the representation of
30273438Sdelphij#	the corresponding initial epoch in the usual
31255902Sedwin#	day-month-year format. The epoch always begins at
32255902Sedwin#	00:00:00 UTC on the indicated day. See Note 5 below.)
33273438Sdelphij#
34255902Sedwin#	Important notes:
35255902Sedwin#
36255902Sedwin#	1. Coordinated Universal Time (UTC) is often referred to
37255902Sedwin#	as Greenwich Mean Time (GMT). The GMT time scale is no
38255902Sedwin#	longer used, and the use of GMT to designate UTC is
39255902Sedwin#	discouraged.
40255902Sedwin#
41273438Sdelphij#	2. The UTC time scale is realized by many national
42255902Sedwin#	laboratories and timing centers. Each laboratory
43255902Sedwin#	identifies its realization with its name: Thus
44255902Sedwin#	UTC(NIST), UTC(USNO), etc. The differences among
45255902Sedwin#	these different realizations are typically on the
46255902Sedwin#	order of a few nanoseconds (i.e., 0.000 000 00x s)
47255902Sedwin#	and can be ignored for many purposes. These differences
48255902Sedwin#	are tabulated in Circular T, which is published monthly
49255902Sedwin#	by the International Bureau of Weights and Measures
50309568Sglebius#	(BIPM). See www.bipm.org for more information.
51255902Sedwin#
52273438Sdelphij#	3. The current definition of the relationship between UTC
53273438Sdelphij#	and TAI dates from 1 January 1972. A number of different
54273438Sdelphij#	time scales were in use before that epoch, and it can be
55273438Sdelphij#	quite difficult to compute precise timestamps and time
56255902Sedwin#	intervals in those "prehistoric" days. For more information,
57255902Sedwin#	consult:
58255902Sedwin#
59255902Sedwin#		The Explanatory Supplement to the Astronomical
60255902Sedwin#		Ephemeris.
61255902Sedwin#	or
62255902Sedwin#		Terry Quinn, "The BIPM and the Accurate Measurement
63255902Sedwin#		of Time," Proc. of the IEEE, Vol. 79, pp. 894-905,
64255902Sedwin#		July, 1991.
65255902Sedwin#
66273438Sdelphij#	4. The decision to insert a leap second into UTC is currently
67273438Sdelphij#	the responsibility of the International Earth Rotation and
68273438Sdelphij#	Reference Systems Service. (The name was changed from the
69273438Sdelphij#	International Earth Rotation Service, but the acronym IERS
70273438Sdelphij#	is still used.)
71255902Sedwin#
72273438Sdelphij#	Leap seconds are announced by the IERS in its Bulletin C.
73255902Sedwin#
74273438Sdelphij#	See www.iers.org for more details.
75255902Sedwin#
76273438Sdelphij#	Every national laboratory and timing center uses the
77273438Sdelphij#	data from the BIPM and the IERS to construct UTC(lab),
78273438Sdelphij#	their local realization of UTC.
79255902Sedwin#
80255902Sedwin#	Although the definition also includes the possibility
81273438Sdelphij#	of dropping seconds ("negative" leap seconds), this has
82273438Sdelphij#	never been done and is unlikely to be necessary in the
83255902Sedwin#	foreseeable future.
84255902Sedwin#
85255902Sedwin#	5. If your system keeps time as the number of seconds since
86255902Sedwin#	some epoch (e.g., NTP timestamps), then the algorithm for
87255902Sedwin#	assigning a UTC time stamp to an event that happens during a positive
88273438Sdelphij#	leap second is not well defined. The official name of that leap
89273438Sdelphij#	second is 23:59:60, but there is no way of representing that time
90273438Sdelphij#	in these systems.
91273438Sdelphij#	Many systems of this type effectively stop the system clock for
92273438Sdelphij#	one second during the leap second and use a time that is equivalent
93273438Sdelphij#	to 23:59:59 UTC twice. For these systems, the corresponding TAI
94255902Sedwin#	timestamp would be obtained by advancing to the next entry in the
95255902Sedwin#	following table when the time equivalent to 23:59:59 UTC
96255902Sedwin#	is used for the second time. Thus the leap second which
97255902Sedwin#	occurred on 30 June 1972 at 23:59:59 UTC would have TAI
98255902Sedwin#	timestamps computed as follows:
99255902Sedwin#
100255902Sedwin#	...
101255902Sedwin#	30 June 1972 23:59:59 (2287785599, first time):	TAI= UTC + 10 seconds
102255902Sedwin#	30 June 1972 23:59:60 (2287785599,second time):	TAI= UTC + 11 seconds
103255902Sedwin#	1  July 1972 00:00:00 (2287785600)		TAI= UTC + 11 seconds
104255902Sedwin#	...
105255902Sedwin#
106255902Sedwin#	If your system realizes the leap second by repeating 00:00:00 UTC twice
107255902Sedwin#	(this is possible but not usual), then the advance to the next entry
108273438Sdelphij#	in the table must occur the second time that a time equivalent to
109255902Sedwin#	00:00:00 UTC is used. Thus, using the same example as above:
110255902Sedwin#
111255902Sedwin#	...
112255902Sedwin#       30 June 1972 23:59:59 (2287785599):		TAI= UTC + 10 seconds
113255902Sedwin#       30 June 1972 23:59:60 (2287785600, first time):	TAI= UTC + 10 seconds
114255902Sedwin#       1  July 1972 00:00:00 (2287785600,second time):	TAI= UTC + 11 seconds
115255902Sedwin#	...
116255902Sedwin#
117255902Sedwin#	in both cases the use of timestamps based on TAI produces a smooth
118273438Sdelphij#	time scale with no discontinuity in the time interval. However,
119273438Sdelphij#	although the long-term behavior of the time scale is correct in both
120273438Sdelphij#	methods, the second method is technically not correct because it adds
121273438Sdelphij#	the extra second to the wrong day.
122255902Sedwin#
123273438Sdelphij#	This complexity would not be needed for negative leap seconds (if they
124273438Sdelphij#	are ever used). The UTC time would skip 23:59:59 and advance from
125273438Sdelphij#	23:59:58 to 00:00:00 in that case. The TAI offset would decrease by
126273438Sdelphij#	1 second at the same instant. This is a much easier situation to deal
127273438Sdelphij#	with, since the difficulty of unambiguously representing the epoch
128255902Sedwin#	during the leap second does not arise.
129255902Sedwin#
130309568Sglebius#	Some systems implement leap seconds by amortizing the leap second
131309568Sglebius#	over the last few minutes of the day. The frequency of the local
132309568Sglebius#	clock is decreased (or increased) to realize the positive (or
133309568Sglebius#	negative) leap second. This method removes the time step described
134309568Sglebius#	above. Although the long-term behavior of the time scale is correct
135309568Sglebius#	in this case, this method introduces an error during the adjustment
136309568Sglebius#	period both in time and in frequency with respect to the official
137309568Sglebius#	definition of UTC.
138309568Sglebius#
139255902Sedwin#	Questions or comments to:
140255902Sedwin#		Judah Levine
141255902Sedwin#		Time and Frequency Division
142255902Sedwin#		NIST
143255902Sedwin#		Boulder, Colorado
144273438Sdelphij#		Judah.Levine@nist.gov
145255902Sedwin#
146309568Sglebius#	Last Update of leap second values:   8 July 2016
147255902Sedwin#
148273438Sdelphij#	The following line shows this last update date in NTP timestamp
149255902Sedwin#	format. This is the date on which the most recent change to
150255902Sedwin#	the leap second data was added to the file. This line can
151273438Sdelphij#	be identified by the unique pair of characters in the first two
152255902Sedwin#	columns as shown below.
153255902Sedwin#
154309568Sglebius#$	 3676924800
155255902Sedwin#
156255902Sedwin#	The NTP timestamps are in units of seconds since the NTP epoch,
157273438Sdelphij#	which is 1 January 1900, 00:00:00. The Modified Julian Day number
158273438Sdelphij#	corresponding to the NTP time stamp, X, can be computed as
159255902Sedwin#
160255902Sedwin#	X/86400 + 15020
161255902Sedwin#
162273438Sdelphij#	where the first term converts seconds to days and the second
163273438Sdelphij#	term adds the MJD corresponding to the time origin defined above.
164273438Sdelphij#	The integer portion of the result is the integer MJD for that
165273438Sdelphij#	day, and any remainder is the time of day, expressed as the
166273438Sdelphij#	fraction of the day since 0 hours UTC. The conversion from day
167273438Sdelphij#	fraction to seconds or to hours, minutes, and seconds may involve
168273438Sdelphij#	rounding or truncation, depending on the method used in the
169273438Sdelphij#	computation.
170255902Sedwin#
171273438Sdelphij#	The data in this file will be updated periodically as new leap
172255902Sedwin#	seconds are announced. In addition to being entered on the line
173273438Sdelphij#	above, the update time (in NTP format) will be added to the basic
174255902Sedwin#	file name leap-seconds to form the name leap-seconds.<NTP TIME>.
175273438Sdelphij#	In addition, the generic name leap-seconds.list will always point to
176255902Sedwin#	the most recent version of the file.
177255902Sedwin#
178255902Sedwin#	This update procedure will be performed only when a new leap second
179273438Sdelphij#	is announced.
180255902Sedwin#
181255902Sedwin#	The following entry specifies the expiration date of the data
182273438Sdelphij#	in this file in units of seconds since the origin at the instant
183273438Sdelphij#	1 January 1900, 00:00:00. This expiration date will be changed
184273438Sdelphij#	at least twice per year whether or not a new leap second is
185273438Sdelphij#	announced. These semi-annual changes will be made no later
186273438Sdelphij#	than 1 June and 1 December of each year to indicate what
187273438Sdelphij#	action (if any) is to be taken on 30 June and 31 December,
188255902Sedwin#	respectively. (These are the customary effective dates for new
189255902Sedwin#	leap seconds.) This expiration date will be identified by a
190255902Sedwin#	unique pair of characters in columns 1 and 2 as shown below.
191273438Sdelphij#	In the unlikely event that a leap second is announced with an
192255902Sedwin#	effective date other than 30 June or 31 December, then this
193255902Sedwin#	file will be edited to include that leap second as soon as it is
194255902Sedwin#	announced or at least one month before the effective date
195273438Sdelphij#	(whichever is later).
196273438Sdelphij#	If an announcement by the IERS specifies that no leap second is
197273438Sdelphij#	scheduled, then only the expiration date of the file will
198255902Sedwin#	be advanced to show that the information in the file is still
199273438Sdelphij#	current -- the update time stamp, the data and the name of the file
200255902Sedwin#	will not change.
201255902Sedwin#
202309568Sglebius#	Updated through IERS Bulletin C52
203309568Sglebius#	File expires on:  28 June 2017
204255902Sedwin#
205309568Sglebius#@	3707596800
206255902Sedwin#
207255902Sedwin2272060800	10	# 1 Jan 1972
208255902Sedwin2287785600	11	# 1 Jul 1972
209255902Sedwin2303683200	12	# 1 Jan 1973
210255902Sedwin2335219200	13	# 1 Jan 1974
211255902Sedwin2366755200	14	# 1 Jan 1975
212255902Sedwin2398291200	15	# 1 Jan 1976
213255902Sedwin2429913600	16	# 1 Jan 1977
214255902Sedwin2461449600	17	# 1 Jan 1978
215255902Sedwin2492985600	18	# 1 Jan 1979
216255902Sedwin2524521600	19	# 1 Jan 1980
217255902Sedwin2571782400	20	# 1 Jul 1981
218255902Sedwin2603318400	21	# 1 Jul 1982
219255902Sedwin2634854400	22	# 1 Jul 1983
220255902Sedwin2698012800	23	# 1 Jul 1985
221255902Sedwin2776982400	24	# 1 Jan 1988
222255902Sedwin2840140800	25	# 1 Jan 1990
223255902Sedwin2871676800	26	# 1 Jan 1991
224255902Sedwin2918937600	27	# 1 Jul 1992
225255902Sedwin2950473600	28	# 1 Jul 1993
226255902Sedwin2982009600	29	# 1 Jul 1994
227255902Sedwin3029443200	30	# 1 Jan 1996
228255902Sedwin3076704000	31	# 1 Jul 1997
229255902Sedwin3124137600	32	# 1 Jan 1999
230255902Sedwin3345062400	33	# 1 Jan 2006
231255902Sedwin3439756800	34	# 1 Jan 2009
232255902Sedwin3550089600	35	# 1 Jul 2012
233309568Sglebius3644697600	36	# 1 Jul 2015
234309568Sglebius3692217600	37	# 1 Jan 2017
235255902Sedwin#
236255902Sedwin#	the following special comment contains the
237255902Sedwin#	hash value of the data in this file computed
238255902Sedwin#	use the secure hash algorithm as specified
239255902Sedwin#	by FIPS 180-1. See the files in ~/pub/sha for
240255902Sedwin#	the details of how this hash value is
241255902Sedwin#	computed. Note that the hash computation
242255902Sedwin#	ignores comments and whitespace characters
243255902Sedwin#	in data lines. It includes the NTP values
244273438Sdelphij#	of both the last modification time and the
245255902Sedwin#	expiration time of the file, but not the
246255902Sedwin#	white space on those lines.
247255902Sedwin#	the hash line is also ignored in the
248255902Sedwin#	computation.
249255902Sedwin#
250309568Sglebius#h	dacf2c42 2c4765d6 3c797af8 2cf630eb 699c8c67
251