From e1dd693e2ac3c0fb1d42ea0e664021b4672465e6 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sun, 17 Jul 2016 19:23:32 +0000 Subject: add new leap second: 2016-12-31 23:59:60 UTC --- package/deps.mak | 2 +- src/libstddjb/leapsecs_table.c | 7 ++++--- tools/leapsecs.txt | 1 + 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 #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 -- cgit v1.2.3