[H-GEN] Seconds since Epoch as ten decimal digits

Jason Henry Parker jasonp at uq.net.au
Thu May 31 08:54:41 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 ]

Martin Pool <mbp at samba.org> writes:

> On 31 May 2001, Jason Henry Parker <jasonp at uq.net.au> wrote:
> > $ perl -le'print~~localtime(10**9)'
>     perl -leprint~~localtime\ 1e9

If you don't mind a warning:

      perl -leprint~~localtime+1e9

If a warning is a problem I can match your stroke:

      perl -leprint~~localtime~~1e9

And if you really want to stretch the rules:

      perl -edie~~localtime+1e9 
      perl -Xedie~~localtime+1e9

jason
-- 
||----|---|------------|--|-------|------|-----------|-#---|-|--|------||
| When I get out, there's no doubt                     jasonp at uq.net.au |
| I'll be sex offensive to you         Nooks on #soc.bi on OpenProjects |
||--|--------|--------------|----|-------------|------|---------|-----|-|

--
* 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