MCPcopy
hub / github.com/hellerve/programming-talks / print_duration

Function print_duration

scripts/add_youtube_durations.py:45–49  ·  view source on GitHub ↗
(duration)

Source from the content-addressed store, hash-verified

43 return hours, minutes, seconds
44
45def print_duration(duration):
46 hours = duration[0] or 0
47 minutes = duration[1] or 0
48 seconds = duration[2] or 0
49 return ' [%02d:%02d:%02d]' % (hours, minutes, seconds)
50
51def handle_log(log):
52 print('Done!')

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected