You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import datetime
|
|
# Current time
|
|
now = datetime.datetime.now()
|
|
# Make a note of the date and time in a string
|
|
# Date and time in string : 2016-11-05 11:24:24 PM
|
|
datestr = "# In string: " + now.strftime("%Y-%m-%d %H:%M:%S %p") + "\n"
|
|
print()
|
|
print(datestr)
|
|
print() |