Name

asctime

Synopsis

asctime([tupletime])

Accepts a time-tuple and returns a 24-character string such as 'Tue Dec 10 18:07:14 2002‘. asctime( ) without arguments is like asctime(localtime(time( ))) (i.e., it formats the current time instant).

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.