Articles → PYTHON → Asctime Function In PythonAsctime Function In PythonIn this article, we will discuss the asctime function in Python.Purpose Asctime converts time tuple into a 24-character string of the following form: 'Sun Jun 20 23:21:05 1993'Example Consider the following exampleimport time print (time.asctime(time.localtime(time.time())))Output Posted By - Karan Gupta Posted On - Wednesday, February 27, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
import time print (time.asctime(time.localtime(time.time())))
Query/Feedback