To get current time with date in python
from datetime import datetime
curtime = str(datetime.now())
output : '2012-11-25 14:58:30.465213'
from datetime import datetime
curtime = str(datetime.now())
output : '2012-11-25 14:58:30.465213'
No comments:
Post a Comment