+ 5
[SOLVED]What is the time module?
when should it be used? And can it be used on sololearn?
5 Answers
+ 3
you can implement the current time and date into your code. for example:
https://code.sololearn.com/cKVERNcDZoXP/?ref=app
+ 3
python
http://effbot.org/librarybook/time.htm
https://www.pythonforbeginners.com/basics/python-datetime-time-examples
⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️⬇️
https://code.sololearn.com/cv4477qfN9ox/?ref=app
⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️⬆️
a simple example
+ 1
You can use below code to check what is time.
import time
print(help(time))
print(dir(time))
+ 1
You can use time module to manipulate time.
examples:
Log a time of function execution.
Calculate a time of your code execution etc.