By Alvin Alexander. Last updated: June 6, 2016
Here’s an example of how to print the formatted time in Python:
import time print time.strftime("%a, %b %d %I:%M %p")
That code results in the following output:
Thu, May 29 11:26 AM
Here’s an example of how to print the formatted time in Python:
import time print time.strftime("%a, %b %d %I:%M %p")
That code results in the following output:
Thu, May 29 11:26 AM