# info > tai64nlocal

---
type: CommandReference
command: tai64nlocal
mode: man
section: 8
source: man-pages
---

## Quick Reference
- `echo '@4000000037c219bf2ef02e94 mark' | tai64nlocal` — Convert a single TAI64N timestamp to local time.
- `tai64nlocal < /var/log/daemon.log` — Process a log file containing `@`-prefixed TAI64N timestamps.

## Name
tai64nlocal — converts precise TAI64N timestamps to a human-readable local time format.

## Synopsis
`tai64nlocal` reads lines from stdin; lines that do not begin with `@` are passed through unchanged. Lines that begin with `@` must contain a TAI64N timestamp (as produced by `tai64n(8)`). The timestamp is converted to local time in ISO format: `YYYY-MM-DD HH:MM:SS.SSSSSSSSS` and the line is printed with the converted timestamp.

**Caveats:** The implementation relies on the UNIX `localtime` library, which often ignores leap seconds. On systems using the Olson tz library with an up‑to‑date leap‑second table, set the timezone to e.g., `right/US/Pacific` instead of `US/Pacific` for correct leap‑second handling. Most `localtime` implementations are not Y2038‑compliant. The program allocates no memory after startup (except possibly inside `localtime`).

## Examples
In the US/Pacific timezone, the input line
@4000000037c219bf2ef02e94 mark
is written as
1999-08-23 21:03:43.787492500 mark
## Exit Codes
- `0` — end of input.
- `111` — error reading stdin or writing stdout (no error message).

## See Also
- [supervise(8)](http://localhost/phpMan.php/man/supervise/8/markdown)
- [svc(8)](http://localhost/phpMan.php/man/svc/8/markdown)
- [svok(8)](http://localhost/phpMan.php/man/svok/8/markdown)
- [svstat(8)](http://localhost/phpMan.php/man/svstat/8/markdown)
- [svscanboot(8)](http://localhost/phpMan.php/man/svscanboot/8/markdown)
- [svscan(8)](http://localhost/phpMan.php/man/svscan/8/markdown)
- [readproctitle(8)](http://localhost/phpMan.php/man/readproctitle/8/markdown)
- [fghack(8)](http://localhost/phpMan.php/man/fghack/8/markdown)
- [pgrphack(8)](http://localhost/phpMan.php/man/pgrphack/8/markdown)
- [multilog(8)](http://localhost/phpMan.php/man/multilog/8/markdown)
- [tai64n(8)](http://localhost/phpMan.php/man/tai64n/8/markdown)
- [setuidgid(8)](http://localhost/phpMan.php/man/setuidgid/8/markdown) (alias `idgid(8)`)
- [envuidgid(8)](http://localhost/phpMan.php/man/envuidgid/8/markdown)
- [envdir(8)](http://localhost/phpMan.php/man/envdir/8/markdown)
- [softlimit(8)](http://localhost/phpMan.php/man/softlimit/8/markdown)
- [setlock(8)](http://localhost/phpMan.php/man/setlock/8/markdown)

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