Herbert Xu wrote:
> Jeff Waugh <[EMAIL PROTECTED]> wrote:
> > python -c 'import time ; print time.strftime("%c", time.localtime(10**9))'
> > perl -e 'print scalar(localtime(10**9)), "\n"'
> > ruby -e 'puts Time.at(10**9)'
> 
> Bloat! Try
> date -d '1970/01/01 utc + 1000000000 sec'
> date -d "1970/01/01 utc + 1$(printf "%0.9d" 0) sec"
> More Info: http://slug.org.au/lists/listinfo/slug

Actually I prefer Jeff's original one.
* It explicitly has the Giga in it and therefore is in te right spirit.
* Windows users won't be able to work out to add 10^9 secs to 1970 so
won't know the date and won't turn up. Don't want the riff-raff now do
we :-)

Mike
----

-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://slug.org.au/lists/listinfo/slug

Reply via email to