leapsecs 1 user commands djbwares
leapsecs compile the leap seconds table used by the Bernstein TAI library
`leapsecs`

## Description

`leapsecs` compiles the `leapsecs.dat` file, that is required by the Bernstein TAI library, from a source text file. It reads the source text file on its standard input, and writes the compiled data file on its standard output.

The source file is published by Daniel J. Bernstein, amongst many others. The only lines that `leapsecs` cares about begin with a `+` in the first column, followed by a date in ISO 8604 form. The leap second written to the table is an (assumed) positive leap second on the last second of that date.

## Files

`/usr/local/etc/leapsecs.dat`

  Primary location of the leap seconds table used by the djbwares toolset.

`/usr/local/share/libtai/leapsecs.dat`

  Secondary location of the leap seconds table used by the djbwares toolset. This is where the database file shipped in the leapsecs package is placed on the BSDs.

`/etc/leapsecs.dat`

  Tertiary location of the leap seconds table used by the djbwares toolset. Primary location of the leap seconds table used by the original Bernstein TAI library.

`/usr/share/libtai/leapsecs.dat`

  Quaternary location of the leap seconds table used by the djbwares toolset. This is where the database file shipped in the leapsecs package is placed on Linux operating systems.

## History

`leapsecs` was originally part of Daniel J. Bernstein's libtai toolset in 1999.

## Author

Original code by Daniel J. Bernstein. Documentation by Jonathan de Boyne Pollard.