Z
Z
zyusifov112021-01-19 13:00:19
Python
zyusifov11, 2021-01-19 13:00:19

How to get current time and n minutes before?

Please help me how to get the current time in Python and 5 minutes before that, the
main thing is to get it in the format 07:12, that is, if 1 digit, then write from 0

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Deleting Account, 2021-01-19
@zyusifov11

https://docs.python.org/3/library/time.html#module-time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question