28
1
Since today marks the occasion of the 26th leap second ever to occur, your challenge will be to output the date and time of every leap second in GMT or UTC that has occurred so far, as well as the one to occur today.
Input
There is no input.
Output
1972-06-30 23:59:60
1972-12-31 23:59:60
1973-12-31 23:59:60
1974-12-31 23:59:60
1975-12-31 23:59:60
1976-12-31 23:59:60
1977-12-31 23:59:60
1978-12-31 23:59:60
1979-12-31 23:59:60
1981-06-30 23:59:60
1982-06-30 23:59:60
1983-06-30 23:59:60
1985-06-30 23:59:60
1987-12-31 23:59:60
1989-12-31 23:59:60
1990-12-31 23:59:60
1992-06-30 23:59:60
1993-06-30 23:59:60
1994-06-30 23:59:60
1995-12-31 23:59:60
1997-06-30 23:59:60
1998-12-31 23:59:60
2005-12-31 23:59:60
2008-12-31 23:59:60
2012-06-30 23:59:60
2015-06-30 23:59:60
Rules
Since I doubt there are many built-ins that allow leap-seconds, I'll allow them.
Standard loopholes are disallowed.
Shortest code wins.
Date format must have a zero-padded month and a 4-digit year, as well as military time and a space separating the time from the date. Putting UTC
at the end is optional. Your choice of dashes or slashes.
EDIT: Yep as predicted, this became an encoding challenge. If only encoding could fix the leap second problem, ...then all our code would be much more practical. Maybe we need some ideas for more fun challenges with practical uses?
Is the output required to have that exact distribution, or it can have any distribution as long as the 26 dates are there? – Ismael Miguel – 2015-07-01T14:17:43.283
2@IsmaelMiguel They need to be in this order. – mbomb007 – 2015-07-01T16:21:26.890
Off topic, but looking at the list, I'm left wondering why we need fewer leap seconds these days than we did in the previous century. – Mr Lister – 2015-07-05T06:12:29.583
@MrLister View the linked Wikipedia article. I think it has to do with Earth's changing rotational speed. – mbomb007 – 2015-07-06T16:58:41.377