Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get the current date and time in python

from datetime import datetime

# datetime object containing current date and time
now = datetime.now()
print("now =", now)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #date #time #python
ADD COMMENT
Topic
Name
6+3 =