[Tutor] Could I have used time or datetime modules here?
Dick Moores
rdm at rcblue.com
Sun Dec 5 17:17:26 CET 2004
I'm wondering if my timer3.py could have been written more simply and
easily by using the time or datetime modules to get the number of seconds
separating the time now and the time to which the alarm is set.
IOW, is there an easier way to calculate the time difference between the
time now, say 08:51 and say, tomorrow at 03:45, to take an example of the
most difficult case?
See timer3.py at
<http://www.rcblue.com/Python/timer3_ForWeb.py>
Thanks, tutors.
Dick Moores
rdm at rcblue.com
More information about the Tutor
mailing list