Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Aug 2006 13:18:24 +0400
From:      Aleksey Perov <algardo@sura.ru>
To:        freebsd-current@freebsd.org
Subject:   Re: suggested addition to 'date'
Message-ID:  <20060816131824.67a8053b.algardo@sura.ru>
In-Reply-To: <44DD4510.5070002@elischer.org>
References:  <44DD4510.5070002@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060816131824.67a8053b.algardo>