3
tai64n \- puts a precise timestamp on each line.
8
reads lines from stdin. For each line, it writes
16
a copy of the input line
18
to stdout. The timestamp indicates the moment that
20
read the first character of the line.
23
does not allocate any memory after it starts.
27
are 12-byte TAI64N labels in external TAI64N format, printed as 24 lowercase
28
hexadecimal characters. You can use
30
to convert the timestamps to a human-readable format.
32
For example, the timestamp 4000000037c219bf2ef02e94 refers to the nanosecond
33
beginning exactly 935467455.787492500 seconds after the beginning of 1970 TAI;
34
37c219bf hexadecimal is 935467455, and 2ef02e94 hexadecimal is 787492500.
36
The current implementation of
38
relies on the UNIX gettimeofday library routine to return the current time as
39
the number of TAI seconds since 1970-01-01 00:00:10 TAI. Beware that most
40
gettimeofday implementations are not Y2038-compliant. Furthermore, most clocks
41
are not set accurately.
44
exits 0 when it sees end of input. It exits 111 without an error message if
45
it has trouble reading stdin or writing stdout.
64
http://cr.yp.to/daemontools.html