0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

閏秒(leap seconds)

Last updated at Posted at 2021-12-18

こんにちは。
閏秒履歴情報を glibc (最新版)から得てみました。

  • この方法では 2008年以前のみが得られるようです。
$ ./leapseconds.sh
Leap    2008    Dec     31      23:59:60        +       S
Leap    2005    Dec     31      23:59:60        +       S
Leap    1998    Dec     31      23:59:60        +       S
Leap    1997    Jun     30      23:59:60        +       S
Leap    1995    Dec     31      23:59:60        +       S
Leap    1994    Jun     30      23:59:60        +       S
Leap    1993    Jun     30      23:59:60        +       S
Leap    1992    Jun     30      23:59:60        +       S
Leap    1990    Dec     31      23:59:60        +       S
Leap    1989    Dec     31      23:59:60        +       S
Leap    1987    Dec     31      23:59:60        +       S
Leap    1985    Jun     30      23:59:60        +       S
Leap    1983    Jun     30      23:59:60        +       S
Leap    1982    Jun     30      23:59:60        +       S
Leap    1981    Jun     30      23:59:60        +       S
Leap    1979    Dec     31      23:59:60        +       S
Leap    1978    Dec     31      23:59:60        +       S
Leap    1977    Dec     31      23:59:60        +       S
Leap    1976    Dec     31      23:59:60        +       S
Leap    1975    Dec     31      23:59:60        +       S
Leap    1974    Dec     31      23:59:60        +       S
Leap    1973    Dec     31      23:59:60        +       S
Leap    1972    Dec     31      23:59:60        +       S
Leap    1972    Jun     30      23:59:60        +       S
leapseconds.sh
#!/bin/sh
GLIBCV=2.34
GLIBC=glibc-$GLIBCV
GLIBCTAR=$GLIBC.tar.xz

cd "$(mktemp -d)" || exit
wget http://ftp.gnu.org/gnu/glibc/$GLIBCTAR 2> /dev/null
tar -Jxf $GLIBCTAR
grep ^Leap "$GLIBC"/timezone/leapseconds | tac

最新補足

最新までを補足・追加しますと:

Leap    2016    Dec     31      23:59:60        +       S
Leap    2015    Jun     30      23:59:60        +       S
Leap    2012    Jun     30      23:59:60        +       S
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?