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

Tony Bilbrough mtbilbro at bigpond.net.au
Thu May 31 01:57:36 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 ]

G'day Mark,
More pearls of wisdom, please!
Tony

Mark Suter wrote:
> 
> [ 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 ]
> 
> Folks,
> 
> As many of you know, most Unix variants store the number of
> seconds since the epoch.  The GNU version of "date" has an
> extension to display this value, as follows.
> 
>     $ date --help | grep %s ; date +%s
>       %s   seconds since `00:00:00 1970-01-01 UTC' (a GNU extension)
>     991282474
> 
> When will this number need ten decimal digits to display?
> 
>     $ perl -le'print"".localtime(10**9)'
>     Sun Sep  9 11:46:40 2001
> 
> Unfortunately, this isn't a Humbug meeting :(
> 
> Yours sincerely,
> 
> -- Mark John Suter  | I know that you  believe  you understand
> suter at humbug.org.au | what you think I said, but I am not sure
> gpg key id F2FEBB36 | you realise that what you  heard  is not
> mobile 0411 262 316 | what I meant.        Robert J. McCloskey
> 
> --
> * 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'.

-- 
||............*............*....................*..............
||       I'll be right there for you...
||            ....to
||                        ....find a fine line
||      ....along your way
|| ô¿ô
||I want a sweater for Christmas.  Or a screamer or a moaner	
||............*............*....................*..............

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