[SOLVED]What is the time module? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

[SOLVED]What is the time module?

when should it be used? And can it be used on sololearn?

21st Jul 2018, 6:14 PM
LONGTIE👔
LONGTIE👔 - avatar
4 Answers
+ 3
you can implement the current time and date into your code. for example: https://code.sololearn.com/cKVERNcDZoXP/?ref=app
21st Jul 2018, 8:53 PM
tamaslud
tamaslud - avatar
+ 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
23rd Jul 2018, 2:31 PM
Enes Soylu
+ 1
You can use below code to check what is time. import time print(help(time)) print(dir(time))
21st Jul 2018, 6:23 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
+ 1
You can use time module to manipulate time. examples: Log a time of function execution. Calculate a time of your code execution etc.
21st Jul 2018, 6:26 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar