On Friday 07 December 2007 22:03:40 Aaron Kulkis wrote:
> Carlos E. R. wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > The Friday 2007-11-30 at 22:22 -0600, Bryen wrote:
> >> On Sat, 2007-12-01 at 05:00 +0100, Carlos E. R. wrote:
> >>> rpm -q -a --queryformat "%{INSTALLTIME}\t%{INSTALLTIME:day} \
> >>>     %{BUILDTIME:day} %-30{NAME}\t%15{VERSION}-%-7{RELEASE} \
> >>>     %25{PACKAGER}\n" | sort | less -S
> >>
> >> That's very cool.  What does the first column represent?  I'm assuming
> >> it is install time based on unix time?
> >
> > Some internal time representation, I think seconds from certain date
> > which I think is called unix time, yes.
>
> Unix Time starts with t=0 seconds at
> 00:00, between 31 Dec 1969 and 01 Jan 1970,
> which is also knows as "the epoch."
>
> System time is an unsigned 32-bit number representing
> the number of seconds since "the epoch."
>
> 32-bit time will run out sometime in 2038.
> This gives us 31 years to convert to 64-bit time.

Actually it's a signed long, which means 2147483647 seconds, or just over 68 
years. An unsigned value would be about twice that

But since it's typedef:ed to "long", all we have to do is stop buying 32 bit 
machines, the modern 64 bit systems are already safe until well after the sun 
explodes in a few billion years' time :)

Anders

-- 
Madness takes its toll
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to