Articles → Python → Time Tuple In PythonTime Tuple In PythonIn this article, we will discuss time tuples in Python.What Is A Time Tuple? As discussed in the earlier sections, a tuple is an immutable collection. So, a time tuple is an immutable collection that contains various information like day, month, year, hour, second, etc.Example Consider the following codeimport time print (time.localtime(time.time()))Output Posted By - Karan Gupta Posted On - Tuesday, February 26, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import time print (time.localtime(time.time()))
Query/Feedback