Sunday, 2 March 2014

Printing Time in a Readable Format Python

import time
print time.strftime('%I:%M%p %Z on %b %d, %Y')

Printing Time in Python

more about the time module: http://docs.python.org/2/library/time.html

0 comments:

Post a Comment