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'
The Magician Of Linux
0 comments:
Post a Comment