# tai64n - puts a precise timestamp on each line. - man(8) - [phpMan]

[_tai64n_(8)](https://www.chedong.com/phpMan.php/man/tai64n/8/markdown)                              System Manager's Manual                             [_tai64n_(8)](https://www.chedong.com/phpMan.php/man/tai64n/8/markdown)

## NAME
       tai64n - puts a precise timestamp on each line.

## SYNOPSIS
### tai64n

## DESCRIPTION
       **tai64n **reads lines from stdin. For each line, it writes

       1      an @,

       2.     a precise timestamp,

       3.     a space, and

       4.     a copy of the input line

              to  stdout. The timestamp indicates the moment that **tai64n **read the first character of
              the line.

              **tai64n **does not allocate any memory after it starts.

## TIMESTAMPS
       Timestamps used by **tai64n **are 12-byte TAI64N labels in external TAI64N format, printed as  24
       lowercase  hexadecimal  characters. You can use [**tai64nlocal**(8)](https://www.chedong.com/phpMan.php/man/tai64nlocal/8/markdown) to convert the timestamps to a
       human-readable format.

       For example, the timestamp 4000000037c219bf2ef02e94 refers to the  nanosecond  beginning  ex‐
       actly  935467455.787492500  seconds  after the beginning of 1970 TAI; 37c219bf hexadecimal is
       935467455, and 2ef02e94 hexadecimal is 787492500.

       The current implementation of **tai64n **relies on the UNIX gettimeofday library routine  to  re‐
       turn the current time as the number of TAI seconds since 1970-01-01 00:00:10 TAI. Beware that
       most  gettimeofday  implementations are not Y2038-compliant. Furthermore, most clocks are not
       set accurately.

## EXIT CODES
       **tai64n **exits 0 when it sees end of input. It exits 111 without an error  message  if  it  has
       trouble reading stdin or writing stdout.

## SEE ALSO
       [supervise(8)](https://www.chedong.com/phpMan.php/man/supervise/8/markdown),   [svc(8)](https://www.chedong.com/phpMan.php/man/svc/8/markdown),   [svok(8)](https://www.chedong.com/phpMan.php/man/svok/8/markdown),  [svstat(8)](https://www.chedong.com/phpMan.php/man/svstat/8/markdown),  [svscanboot(8)](https://www.chedong.com/phpMan.php/man/svscanboot/8/markdown),  [svscan(8)](https://www.chedong.com/phpMan.php/man/svscan/8/markdown),  [readproctitle(8)](https://www.chedong.com/phpMan.php/man/readproctitle/8/markdown),
       [fghack(8)](https://www.chedong.com/phpMan.php/man/fghack/8/markdown), [pgrphack(8)](https://www.chedong.com/phpMan.php/man/pgrphack/8/markdown), [multilog(8)](https://www.chedong.com/phpMan.php/man/multilog/8/markdown), [tai64nlocal(8)](https://www.chedong.com/phpMan.php/man/tai64nlocal/8/markdown), [setuidgid(8)](https://www.chedong.com/phpMan.php/man/setuidgid/8/markdown),  [envuidgid(8)](https://www.chedong.com/phpMan.php/man/envuidgid/8/markdown),  [envdir(8)](https://www.chedong.com/phpMan.php/man/envdir/8/markdown),
       [softlimit(8)](https://www.chedong.com/phpMan.php/man/softlimit/8/markdown), [setlock(8)](https://www.chedong.com/phpMan.php/man/setlock/8/markdown)

       <http://cr.yp.to/daemontools.html>

                                                                                           [_tai64n_(8)](https://www.chedong.com/phpMan.php/man/tai64n/8/markdown)
