Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

get current date and time with python

import datetime
print(datetime.datetime.now())
2021-11-13 23:30:38.419951
print(datetime.date.today())
2021-11-13
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #current #date #time #python
ADD COMMENT
Topic
Name
8+8 =