Articles → Python → Time Tuple In PythonTime Tuple In PythonIn this article, we will discuss about time tuple in pythonWhat Is Time Tuple? As discussed in the earlier sections, tuple is an immutable collection. So, 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()))The above code will return time tuple.Click to EnlargePosted 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