Welcome folks today in this blog post we will be getting the
current time using the
time module in python. All the full source code of application is given below.
In order to get started you need to make an
app.py file and copy paste the following code
t = time.localtime()
current_time = time.strftime("%H:%M:%S", t)
Now if you execute this python script by typing the below command as shown below