Re: Date and timestamp conversion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux