suggested addition to 'date'

Aleksey Perov algardo at sura.ru
Wed Aug 16 09:18:30 UTC 2006


Julian Elischer wrote:

> At various times I've wanted to add timestamps to logfiles as they are 
> generated..

This wheel has been invented million years ago.

Install DJB's daemontools from ports, then run

$ yes | tai64n | tai64nlocal
2006-08-16 13:13:50.001417500 y
2006-08-16 13:13:50.001421500 y
2006-08-16 13:13:50.001424500 y
2006-08-16 13:13:50.001428500 y
2006-08-16 13:13:50.001431500 y
2006-08-16 13:13:50.001434500 y
2006-08-16 13:13:50.001437500 y
2006-08-16 13:13:50.001441500 y
2006-08-16 13:13:50.001444500 y
2006-08-16 13:13:50.001447500 y
2006-08-16 13:13:50.001451500 y
2006-08-16 13:13:50.001454500 y
2006-08-16 13:13:50.001458500 y
2006-08-16 13:13:50.001461500 y
^C

and have a nice day :-)



-- 
Aleksey Perov


More information about the freebsd-current mailing list