Re: suggested addition to 'date'

From: Aleksey Perov <algardo_at_sura.ru>
Date: Wed, 16 Aug 2006 13:18:24 +0400
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
Received on Wed Aug 16 2006 - 07:18:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:59 UTC