From d431f68054886e1170d39cac1c7c0a3fd680a9c7 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Wed, 10 Dec 2008 18:24:32 +0000 Subject: [PATCH] Add leap second for 2008-12-31 Add an entry to record the leap second at 2008-12-31, and tidy up the table formatting. --- src/libiso8601/100_leap.c | 47 ++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/src/libiso8601/100_leap.c b/src/libiso8601/100_leap.c index 851d274..1071a83 100644 --- a/src/libiso8601/100_leap.c +++ b/src/libiso8601/100_leap.c @@ -8,29 +8,30 @@ static int leap_second_days[] = { - 720439, // 19720630 - 720623, // 19721231 - 720988, // 19731231 - 721353, // 19741231 - 721718, // 19751231 - 722084, // 19761231 - 722449, // 19771231 - 722814, // 19781231 - 723179, // 19791231 - 723726, // 19810630 - 724091, // 19820630 - 724456, // 19830630 - 725187, // 19850630 - 726101, // 19871231 - 726832, // 19891231 - 727197, // 19901231 - 727744, // 19920630 - 728109, // 19930630 - 728474, // 19940630 - 729023, // 19951231 - 729570, // 19970630 - 730119, // 19981231 - 732676 // 20051231 + 720439, /* 1972-06-30 */ + 720623, /* 1972-12-31 */ + 720988, /* 1973-12-31 */ + 721353, /* 1974-12-31 */ + 721718, /* 1975-12-31 */ + 722084, /* 1976-12-31 */ + 722449, /* 1977-12-31 */ + 722814, /* 1978-12-31 */ + 723179, /* 1979-12-31 */ + 723726, /* 1981-06-30 */ + 724091, /* 1982-06-30 */ + 724456, /* 1983-06-30 */ + 725187, /* 1985-06-30 */ + 726101, /* 1987-12-31 */ + 726832, /* 1989-12-31 */ + 727197, /* 1990-12-31 */ + 727744, /* 1992-06-30 */ + 728109, /* 1993-06-30 */ + 728474, /* 1994-06-30 */ + 729023, /* 1995-12-31 */ + 729570, /* 1997-06-30 */ + 730119, /* 1998-12-31 */ + 732676, /* 2005-12-31 */ + 733772, /* 2008-12-31 */ };