summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-07-17 19:23:32 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-07-17 19:23:32 +0000
commite1dd693e2ac3c0fb1d42ea0e664021b4672465e6 (patch)
treef145efd264ef91cbbbe569be958edf3a512a39d1
parent43dfdceef9f5eb75e8f3a50eb19ac9129f11b34e (diff)
downloadskalibs-e1dd693e2ac3c0fb1d42ea0e664021b4672465e6.tar.xz
add new leap second: 2016-12-31 23:59:60 UTC
-rw-r--r--package/deps.mak2
-rw-r--r--src/libstddjb/leapsecs_table.c7
-rw-r--r--tools/leapsecs.txt1
3 files changed, 6 insertions, 4 deletions
diff --git a/package/deps.mak b/package/deps.mak
index 401d9d3..404bede 100644
--- a/package/deps.mak
+++ b/package/deps.mak
@@ -664,7 +664,7 @@ src/libstddjb/timestamp_scan.o src/libstddjb/timestamp_scan.lo: src/libstddjb/ti
src/libstddjb/timeval_from_tain.o src/libstddjb/timeval_from_tain.lo: src/libstddjb/timeval_from_tain.c src/include/skalibs/tai.h
src/libstddjb/timeval_from_tain_relative.o src/libstddjb/timeval_from_tain_relative.lo: src/libstddjb/timeval_from_tain_relative.c src/include/skalibs/tai.h
src/libstddjb/timeval_sysclock_from_tain.o src/libstddjb/timeval_sysclock_from_tain.lo: src/libstddjb/timeval_sysclock_from_tain.c src/include/skalibs/tai.h
-src/libstddjb/touch.o src/libstddjb/touch.lo: src/libstddjb/touch.c src/include/skalibs/djbunix.h src/include/skalibs/sysdeps.h
+src/libstddjb/touch.o src/libstddjb/touch.lo: src/libstddjb/touch.c src/include/skalibs/djbunix.h src/include/skalibs/nonposix.h src/include/skalibs/sysdeps.h
src/libstddjb/ucharn_findlen.o src/libstddjb/ucharn_findlen.lo: src/libstddjb/ucharn_findlen.c src/include/skalibs/fmtscan.h
src/libstddjb/ucharn_fmt.o src/libstddjb/ucharn_fmt.lo: src/libstddjb/ucharn_fmt.c src/include/skalibs/fmtscan.h
src/libstddjb/ucharn_fmt_little.o src/libstddjb/ucharn_fmt_little.lo: src/libstddjb/ucharn_fmt_little.c src/include/skalibs/fmtscan.h
diff --git a/src/libstddjb/leapsecs_table.c b/src/libstddjb/leapsecs_table.c
index f5ede55..fcf17fa 100644
--- a/src/libstddjb/leapsecs_table.c
+++ b/src/libstddjb/leapsecs_table.c
@@ -6,8 +6,8 @@
#include <skalibs/tai.h>
#include "djbtime-internal.h"
-unsigned int const leapsecs_table_len = 26 ;
-static uint64 const leapsecs_table_[26] =
+unsigned int const leapsecs_table_len = 27 ;
+static uint64 const leapsecs_table_[27] =
{
TAI_MAGIC + 78796809,
TAI_MAGIC + 94694410,
@@ -34,6 +34,7 @@ static uint64 const leapsecs_table_[26] =
TAI_MAGIC + 1136073631,
TAI_MAGIC + 1230768032,
TAI_MAGIC + 1341100833,
- TAI_MAGIC + 1435708834
+ TAI_MAGIC + 1435708834,
+ TAI_MAGIC + 1483228835
} ;
uint64 const *const leapsecs_table = leapsecs_table_ ;
diff --git a/tools/leapsecs.txt b/tools/leapsecs.txt
index fa2a965..f582625 100644
--- a/tools/leapsecs.txt
+++ b/tools/leapsecs.txt
@@ -27,3 +27,4 @@
+2008-12-31
+2012-06-30
+2015-06-30
++2016-12-31