Re: elapsed time



"Donal K. Fellows" <donal.k.fellows@xxxxxxxxxxxxxxxx> writes:

> Robert Hicks wrote:
> > 11:55:55? That is a wierd time to stop at...
>
> It's 2**31-1 (= 0x7fffffff) seconds after the start of the epoch
> (beginning of the year 1970 in the GMT timezone).

But it isn't!

% expr 0x7fffffff
2147483647
% clock scan "11:55:55 pm dec 31, 2037 gmt"
2145916555
% clock scan "11:59:59 pm dec 31, 2037 gmt"
2145916799
% clock scan "00:00:00 am jan 1, 2038 gmt"
unable to convert date-time string "00:00:00 am jan 1, 2038 gmt"

So (1) "11:55:55" is a wierd time, and probably a typo for "11:59:59",
and (2) the clock scan command truncates the epoch to a convenient calendar
time, rather than using up all available seconds.

--
Donald Arseneau asnd@xxxxxxxxx
.



Relevant Pages

  • Re: shortest day
    ... :>: incapable of assembling a decent calendar. ... candle clock... ... The shortest day depends on location. ... The Wild Wild West was far beyond the Romans -- you're comparing ...
    (sci.physics)
  • Re: Bug: Status/Summary of slashdot leap-second crash on new years 2008-2009
    ... since epoch for January 1 and subtract the seconds since epoch since the ... "diddling the clock" is really the only valid solution to ... The leap-second is such a fine adjustment ... assumed date of the epoch is adjusted slightly relative to real time ...
    (Linux-Kernel)
  • Re: Calendars tasks and resources
    ... The might well be people working around the clock during an outage but does an individual person - Catfish Hunter, for example - work around the clock without any time off for sleep or meals? ... The 24 hour calendar says that once they start that job, the two Cats aren't relieved by anyone else for any reason and they don't go home until the job is done. ... up a resource for "boiler makers working 6-10's, ...
    (microsoft.public.project)
  • Re: shortest day
    ... :>: incapable of assembling a decent calendar. ... :> When big white ball has gone, ... :> When big white ball reappears, note time. ... candle clock... ...
    (sci.physics)
  • Re: Using poll for timeout
    ... 'Number of seconds elapsed since the epoch', ... measurements obtained in this way depends a) on the implementaion and ... The only generally sensible policy is one which follows the NTP 'clock ... 'clock correctness principle' is broken in this respect. ...
    (comp.unix.programmer)