[H-GEN] Seconds since Epoch as ten decimal digits
Martin Pool
mbp at samba.org
Thu May 31 06:54:24 EDT 2001
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Please observe the list's charter. ]
[ Worthwhile understanding: http://www.humbug.org.au/netiquette.html ]
On 31 May 2001, Jason Henry Parker <jasonp at uq.net.au> wrote:
> I *knew* I could make that shorter!
>
> $ perl -le'print~~localtime(10**9)'
> Sun Sep 9 11:46:40 2001
perl -leprint~~localtime\ 1e9
> I do believe this ends the current round of golf.
3 under par!
--
Martin
--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.
More information about the General
mailing list