Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python datetime now only hour and minute

from datetime import datetime
hour_and_minute = datetime.now().strftime("%H:%M")
# "14:09"
 
PREVIOUS NEXT
Tagged: #python #datetime #hour #minute
ADD COMMENT
Topic
Name
9+9 =