S6-TAI64NLOCAL(8)

NAME
s6-tai64nlocal - read from stdin and write to stdout, replacing every line beginning with a TAI64N timestamp[1] with a human-readable local date and time

SYNOPSIS
s6-tai64nlocal [-g]

DESCRIPTION
s6-tai64nlocal exits 0 when it sees the end of stdin. If there's an unfinished line, s6-tai64nlocal processes it and writes it before exiting.

The typical use case of s6-tai64nlocal is to read files that have been filtered through s6-tai64n(8), or log files that have been produced by s6-log(8) with the -t option. For instance, to read the latest httpd logs with human-readable timestamps, ‘s6-tai64nlocal < /var/log/httpd/current | less’ is a possible command.

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.

If s6-tai64nlocal does not appear to give the correct local time:

•   Check the compilation options that were used for the skalibs[2] libraries your s6-tai64nlocal program was linked against. In particular, check whether the ‘--enable-tai-clock’ or ‘--enable-right-tz’ configure options have been given.

•   Compare these flags and their meanings with your current timezone. In particular, check /etc/localtime, /etc/timezone, /etc/TZ, and the TZ environment variable.

OPTIONS

-g  Print GMT time instead of local time.

SEE ALSO
s6-applyuidgid(8), s6-envdir(8), s6-envuidgid(8), s6-fghack(8), s6-setsid(8), s6-setuidgid(8), s6-softlimit(8), s6-tai64n(8)

[1] https://skarnet.org/software/skalibs/libstddjb/tai.html#timestamp

[2] https://skarnet.org/software/skalibs/

This man page is ported from the authoritative documentation at: https://skarnet.org/software/s6/s6-tai64nlocal.html

AUTHORS
Laurent Bercot Alexis <flexibeast@gmail.com> (man page port)