Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tuto date and time python

# import datetime class from datetime module
from datetime import datetime

# get current date
datetime_object = datetime.now()
print(datetime_object)
print('Type :- ',type(datetime_object))
Source by www.dataquest.io #
 
PREVIOUS NEXT
Tagged: #tuto #date #time #python
ADD COMMENT
Topic
Name
6+3 =