Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

datetime library

#date and time in a mm/dd/yyyy hh:mm:ss format
from datetime import datetime
now = datetime.now()


print('%02d/%02d/%04d %02d:%02d:%02d' % (now.month, now.day, now.year, now.hour, now.minute, now.second))
 
PREVIOUS NEXT
Tagged: #datetime #library
ADD COMMENT
Topic
Name
7+9 =