[Tutor] Help me with this problem relating to datetime

Luke Paireepinart rabidpoobear at gmail.com
Thu Nov 16 01:31:21 CET 2006


Asrarahmed Kadri wrote:
> 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?
yes.
http://catb.org/esr/faqs/smart-questions.html#prune
:).
-Luke
>  
> TIA.
>  
> Best Regards,
> Asrarahmed
>  
>
>
> -- 
> To HIM you shall return.
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>   



More information about the Tutor mailing list