[Zope] Calculation with 2 DateTime objects
Gitte Wange
gitte@mmmanager.org
19 Nov 2001 12:02:47 +0100
Hello,
I have been working on this problem for some time now but I cannot seem
to find a solution.
What I need to do is to find a date (with time) from some informations
..
I have a start date for an event, I have a timestamp for an encode start
time and I have a timestamp for when a clip starts ...
Now I want to find the RealTime date (with time) for the clip ...
The code I have looks like this:
event = eventstart.Date()
enc = event + ' ' + str(encstart) + ' GMT'
tcpoint = event + ' ' + str(tc) + ' GMT'
(the reason for inserting the eventstart date in the enc string and the
tcpoint string is because I want to create 2 DateTime objects - but that
requires a date) ...
Now I want to say:
real_tc_time = DateTime(enc) + DateTime(tcpoint)
But ... I get an error saying that you cannot add 2 DateTime objects ??
So how could I do this calculation ?
--
Gitte Wange Jensen
Sys Admin, Developer and a lot more
MMmanager.org Aps, Denmark
Phone: +45 29 72 79 72
Email: gitte@mmmanager.org
Web: www.mmmanager.org
Quote of the day:
Give it your worst. After you recover from being hung-over, of course.
- Linus Torvalds