Date and timestamp conversion
Steffen Kluge
kluge at fujitsu.com.au
Thu Apr 20 03:34:18 UTC 2006
On Wed, 2006-04-19 at 13:53 +0100, Paul Howarth wrote:
> Back again:
> $ TIMESTAMP=1145448136
> $ awk 'BEGIN { print strftime("%a, %d %b %Y %H:%M:%S %z", '$TIMESTAMP')
> }' < /dev/null
> Wed, 19 Apr 2006 13:02:16 +0100
Here's my shorthand for this:
$ perl -e "print scalar localtime $TIMESTAMP"
Cheers
Steffen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060420/d939d297/attachment-0001.sig>
More information about the fedora-list
mailing list