Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

time date year python

import datetime

now = datetime.datetime.now()

print(str(now.day).zfill(2)+'-'+str(now.month).zfill(2)+'-'+str(now.year)+' '+str(now.hour).zfill(2)+':'+str(now.minute).zfill(2)+':'+str(now.second).zfill(2))
# Output
# 24-05-2021 17:09:45
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #time #date #year #python
ADD COMMENT
Topic
Name
2+8 =