From 805729e206b7586c57483aa0f4a90f7e0e2c9661 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 14 Oct 2015 22:54:08 +0000 Subject: - Remove /etc/leapsecs.dat - Publish tools to create the leap second table as a .c - Simplify functions using leap seconds - rc for 2.3.8.0 --- doc/index.html | 2 +- doc/libstddjb/djbtime.html | 23 +++-------------- doc/libstddjb/tai.html | 25 +----------------- doc/upgrade.html | 6 +++++ package/deps.mak | 5 ++-- package/info | 2 +- src/etc/leapsecs.dat | Bin 208 -> 0 bytes src/libstddjb/djbtime-internal.h | 21 +++------------- src/libstddjb/leapsecs_add.c | 11 +++----- src/libstddjb/leapsecs_here.c | 9 ------- src/libstddjb/leapsecs_init.c | 34 ------------------------- src/libstddjb/leapsecs_sub.c | 10 +++----- src/libstddjb/leapsecs_table.c | 39 ++++++++++++++++++++++++++++ src/libstddjb/ltm64_from_utc.c | 2 +- src/libstddjb/tai_from_utc.c | 2 +- src/libstddjb/utc_from_localtm.c | 6 ++--- src/libstddjb/utc_from_ltm64.c | 14 +++-------- src/libstddjb/utc_from_tai.c | 2 +- tools/convert-leapsecs.c | 53 +++++++++++++++++++++++++++++++++++++++ tools/leapsecs.txt | 29 +++++++++++++++++++++ tools/make-leapsecs_table | 39 ++++++++++++++++++++++++++++ 21 files changed, 195 insertions(+), 139 deletions(-) delete mode 100644 src/etc/leapsecs.dat delete mode 100644 src/libstddjb/leapsecs_here.c delete mode 100644 src/libstddjb/leapsecs_init.c create mode 100644 src/libstddjb/leapsecs_table.c create mode 100644 tools/convert-leapsecs.c create mode 100644 tools/leapsecs.txt create mode 100755 tools/make-leapsecs_table diff --git a/doc/index.html b/doc/index.html index f97bf25..12d718e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -60,7 +60,7 @@ with a standard C development environment

Download

diff --git a/doc/libstddjb/djbtime.html b/doc/libstddjb/djbtime.html index 7eb5ee4..d20131e 100644 --- a/doc/libstddjb/djbtime.html +++ b/doc/libstddjb/djbtime.html @@ -34,21 +34,6 @@ and implemented in the libskarnet.a or libskarnet.so library. other time formats and user-friendly representations.

-

The /etc/leapsecs.dat file

- -

- User-friendly time is calculated from UTC. Internal time computations -should be performed on TAI time - because TAI flows linearly whereas -UTC does not. To convert between UTC and TAI time, you need a -leap second table. skalibs provides such a file in its -src/etc/leapsecs.dat subdirectory, which is copied -to /etc/leapsecs.dat at installation time (unless you specify -a --prefix or --datadir option to configure). -The /etc/leapsecs.dat file must remain accessible -on your system, else time conversions will not be computed -properly. -

-

Data structures