[Zope3-dev] Dates and times

Marius Gedminas mgedmin@codeworks.lt
Tue, 19 Nov 2002 14:21:39 +0200


On Tue, Nov 19, 2002 at 11:31:27AM +0000, Chris Withers wrote:
> >Do you realize that we're talking about time of day, not date-time.
> >If I have a value like "4:30" without a date, why would math be essential?
> 
> Hmmm... sorry again, I did think you were talking about date-time. Still, 
> being able to say "do this in 4 hours time" would be cool :-)
> 
> cheers,
> 
> Chris . o O ( whenToDo = time().addHours(4) )

That's what datetime is for.  time would not do the right thing at 11
pm, for example.

Marius Gedminas
-- 
Si hoc legere scis nimium eruditionis habes.