R
R
Roki99992020-04-22 12:22:51
Time Management
Roki9999, 2020-04-22 12:22:51

How to get only time without date in Python?

How to get only time without date in Python?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Miit, 2020-04-22
@Miit

Perhaps so?

from time import strftime
strftime('%H:%M:%S')
# '12:25:45'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question