{
    "mode": "man",
    "parameter": "tai64n",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/tai64n/8/json",
    "generated": "2026-11-22T21:04:22Z",
    "synopsis": "",
    "sections": {
        "NAME": {
            "content": "tai64n - puts a precise timestamp on each line.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "",
            "subsections": [
                {
                    "name": "tai64n",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "tai64n reads lines from stdin. For each line, it writes\n\n1      an @,\n\n2.     a precise timestamp,\n\n3.     a space, and\n\n4.     a copy of the input line\n\nto  stdout. The timestamp indicates the moment that tai64n read the first character of\nthe line.\n\ntai64n does not allocate any memory after it starts.\n",
            "subsections": []
        },
        "TIMESTAMPS": {
            "content": "Timestamps used by tai64n are 12-byte TAI64N labels in external TAI64N format, printed as  24\nlowercase  hexadecimal  characters. You can use tai64nlocal(8) to convert the timestamps to a\nhuman-readable format.\n\nFor example, the timestamp 4000000037c219bf2ef02e94 refers to the  nanosecond  beginning  ex‐\nactly  935467455.787492500  seconds  after the beginning of 1970 TAI; 37c219bf hexadecimal is\n935467455, and 2ef02e94 hexadecimal is 787492500.\n\nThe current implementation of tai64n relies on the UNIX gettimeofday library routine  to  re‐\nturn the current time as the number of TAI seconds since 1970-01-01 00:00:10 TAI. Beware that\nmost  gettimeofday  implementations are not Y2038-compliant. Furthermore, most clocks are not\nset accurately.\n",
            "subsections": []
        },
        "EXIT CODES": {
            "content": "tai64n exits 0 when it sees end of input. It exits 111 without an error  message  if  it  has\ntrouble reading stdin or writing stdout.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "supervise(8),   svc(8),   svok(8),  svstat(8),  svscanboot(8),  svscan(8),  readproctitle(8),\nfghack(8), pgrphack(8), multilog(8), tai64nlocal(8), setuidgid(8),  envuidgid(8),  envdir(8),\nsoftlimit(8), setlock(8)\n\nhttp://cr.yp.to/daemontools.html\n\ntai64n(8)",
            "subsections": []
        }
    },
    "summary": "tai64n - puts a precise timestamp on each line.",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "supervise",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/supervise/8/json"
        },
        {
            "name": "svc",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svc/8/json"
        },
        {
            "name": "svok",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svok/8/json"
        },
        {
            "name": "svstat",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svstat/8/json"
        },
        {
            "name": "svscanboot",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svscanboot/8/json"
        },
        {
            "name": "svscan",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/svscan/8/json"
        },
        {
            "name": "readproctitle",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/readproctitle/8/json"
        },
        {
            "name": "fghack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/fghack/8/json"
        },
        {
            "name": "pgrphack",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/pgrphack/8/json"
        },
        {
            "name": "multilog",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/multilog/8/json"
        },
        {
            "name": "tai64nlocal",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/tai64nlocal/8/json"
        },
        {
            "name": "setuidgid",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setuidgid/8/json"
        },
        {
            "name": "envuidgid",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envuidgid/8/json"
        },
        {
            "name": "envdir",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/envdir/8/json"
        },
        {
            "name": "softlimit",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/softlimit/8/json"
        },
        {
            "name": "setlock",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setlock/8/json"
        }
    ]
}