object_right_now_plus_two_hours = DateTime(int(DateTime()) + 7200) default_formatted = str(object_right_now_plus_two_hours) Ausum ----- Original Message ----- From: "jonatan" <jonatanpelikan@freemail.hu> To: <zope@zope.org> Sent: Wednesday, November 13, 2002 3:27 PM Subject: [Zope] how to use datetime?
hi,
i've been sweating with datetime objects the whole day, but still cant figure out some simple things:
- documentation ? only in the zope api reference? - how do i make a datetime object which is now+2 hours?
i'm sure there is a simple way, ... like DateTime()+2 which would be great if i could add hours, minutes or seconds so easy ...
thanks for the help
jonatan
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )