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

Asrarahmed Kadri ajkadri at googlemail.com
Thu Nov 16 18:28:54 CET 2006


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?

TIA.
Regards,
Asrarahmed

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


More information about the Tutor mailing list