On Aug 18, Zeus Odin said:

>One small thing. How can today and yesterday have the same date? Their very
>definitions denote that these two days are different (except for specific
>calendar changes, like the readjustment of the calendar to increate
>precision).

Well, if you subtract 86400 seconds from the current time to *attempt* to
get the same time a day earlier, you might sometimes fail, such as at
11:55pm on the day that daylight savings time ended.  If you subtract
86400 seconds (24 hours), you will NOT be at 11:55pm on the previous day,
but rather at 12:55am of the same day, because there was an extra hour in
the day.

-- 
Jeff "japhy" Pinyan         %  How can we ever be the sold short or
RPI Acacia Brother #734     %  the cheated, we who for every service
http://japhy.perlmonk.org/  %  have long ago been overpaid?
http://www.perlmonks.org/   %    -- Meister Eckhart


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to