Sunday, 25 November 2012

Python current timestamp

To get current time with date in python

from datetime import datetime
curtime = str(datetime.now())


output : '2012-11-25 14:58:30.465213'



Share This!



No comments:

Post a Comment

Here We Write The Problems we face at different situations and Solutions to those problems.