[lug] This Saturday: Unix - one gigasecond since the epoch

Walter Pienciak walter at frii.com
Sat Sep 8 19:02:42 MDT 2001


Also,

clear; perl -le 'BEGIN { print "Time to 1e9:\n"; }sleep 1 while print "\e[1A", 1e9 - time, "s ==> ",  time, "s"'

(I don't claim this one: my friend Michel sent it to me.)

Walter

On Fri, 7 Sep 2001, Neal McBurnett wrote:

> Ahh - the end of the first gigasecond of official Unix kernel
> time is nigh.  This is the time recorded in all your filesystem
> timestamps, etc.
>
> $ perl -le 'print scalar gmtime 1e9'
> Sun Sep  9 01:46:40 2001	# UTC
>
> $ perl -le 'print scalar localtime(1E9)'
> Sat Sep  8 19:46:40 2001	# Mountain Daylight Time
>
> Also:
> $ tcl> clock format 1000000000
>
> $ echo '0t1000000000=Y' | TZ=UTC adb  # on solaris
>
> I hope some python fan will step in here....
>
> A google search for
>    "46:40"  unix epoch
> has more, including speculation that some silly programmers have
> relied on time_t being 9 characters long, resulting in a 1Gs bug
>
> See also "Critical and Significant Dates":
>     http://www.merlyn.demon.co.uk/critdate.htm
>
> But note that this will be celebrated 1,000,000,023 seconds after the
> epoch actually began, because Unix time ignores the 23 leap seconds
> since then....
>       ftp://maia.usno.navy.mil/ser7/tai-utc.dat
>
> This should really be celebrated with a party, irc session,
> or something.
>
> Cheers,
>
> Neal McBurnett <neal at bcn.boulder.co.us>
> http://bcn.boulder.co.us/~neal/      (with GPG/PGP keys)
> _______________________________________________
> Web Page:  http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>




More information about the LUG mailing list