[Tutor] Help me with this problem relating to datetime

Asrarahmed Kadri ajkadri at googlemail.com
Thu Nov 16 01:20:40 CET 2006


Hi Folks,


I have got a date (as string), time (as string) , number of slots ( integer)
and delta ( which is in seconds).
I want to create a dictionary which has got date as the key, and the value
should be a tuple with two elements (start_time, end_time).

I will take start_time and find the end_time using delta. This pair of start
and end times have a corresponding date. The date will be used as the key
for the dictionary. Once the time crosses midnight, the date will change.


Can you help me to implement this functionality?

TIA.

Best Regards,
Asrarahmed



-- 
To HIM you shall return.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20061116/f6486023/attachment.html 


More information about the Tutor mailing list