DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+9 =
Submit