[Tutor] how to extract time from datetime.date.time()

Noufal Ibrahim noufal at airtelbroadband.in
Thu Nov 16 18:46:15 CET 2006


Asrarahmed Kadri wrote:
> Hi,
>  
> I want to extract hh:mm:ss from below mentioned code:
>  
> import datetime
>>>> t = datetime.datetime.now()
>>>> print t
> 2006-11-16 16:59:02.843000
>  
> How to do it?

Did you read the documentation and try something out before posting this
question on the list?


-- 
~noufal


More information about the Tutor mailing list