DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
get hours from datetime.timedelta in python (Django)
def days_hours_minutes(td): return td.days, td.seconds//3600, (td.seconds//60)%60
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#hours
#python
ADD COMMENT
Topic
COMMENT
Name
8+6 =
Submit