s6
Software
www.skarnet.org
The s6-tai64nlocal program
s6-tai64nlocal acts as a filter, reading from stdin and writing to stdout.
For every line that begins with a
TAI64N
timestamp, it replaces this timestamp with a human-readable local date and
time.
Interface
s6-tai64nlocal
- s6-tai64nlocal exits 0 when it sees the end of stdin. If there's an
unfinished line, s6-tai64n processes it
and writes it before exiting.
Notes
s6-tai64nlocal does neither "line buffering" nor "block buffering". It does
optimal buffering, i.e. it flushes its output buffer every time
it risks blocking on input.
Troubleshooting
If s6-tai64nlocal does not appear to give the correct local time:
- Check the compilation options that were used for the
skalibs libraries
your s6-tai64nlocal program was linked against. In particular, check the
clockistai and
tzisright flags.
- Compare these flags and their meanings with your current timezone. In particular,
check /etc/localtime, /etc/timezone, /etc/TZ, and the TZ
environment variable.
- Check that you have a correct and recent version of /etc/leapsecs.dat.