F
F
FIRSTNAME LASTNAME2019-08-20 11:54:52
Python
FIRSTNAME LASTNAME, 2019-08-20 11:54:52

Which module is better to use in this situation?

I'm writing some kind of mp3 player using the good old tkinter. There is a problem when working with file duration. How to present it? datetime.timedelta - not very convenient, datetime.date - you can't pass 0 as a value. What other options are there?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
alternativshik, 2019-08-20
@alternativshik

in seconds

C
cython, 2019-08-20
@cython

time function from the standard library time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question