epoch->calendar date(1) wizardry
markzero
mark at darklogik.org
Sun May 29 19:37:04 PDT 2005
Hello,
How may one pretty print an epoch timestamp using date(1)? The date
manual page gives me a headache.
Essentially, I have the timestamp in a file:
$ cat t
1117417465
..and I want to print it in a standard UK format, such as:
+%H:%M:%S %d/%m/%y
Anybody?
(before anybody screams Perl or C, I would rather stick to plain
old sh for this).
Thanks,
Mark
--
PGP: http://www.darklogik.org/pub/pgp/pgp.txt
B776 43DC 8A5D EAF9 2126 9A67 A7DA 390F DEFF 9DD1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 825 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050530/4468286d/attachment.bin
More information about the freebsd-questions
mailing list