[Zope3-dev] Dates and times

Chris Withers chrisw@nipltd.com
Thu, 21 Nov 2002 10:58:31 +0000


Jean Jordaan wrote:
>> time('23:00').addHours(4)==time('03:00')
>>
>> What's wrong with that?
> 
> So it's fine for you that these are equivalent?
> 
> time('23:00').addHours(4)==time('03:00')
> time('23:00').deductHours(20)==time('03:00')

Yup. I just think of it as moving the hands round on a clock face. A clock face 
has no notion of what day it is ;-)

> If I have time('03:00'), how do I decide whether it's past
> or future?

Why does it matter? How would you tell on a clock face?

cheers,

Chris