ID EN
Time

localtime

Python 3.11

Like gmtime() but converts to local time. If secs is not provided or None, the current time as returned by time() is used. The dst flag is set to 1 when DST applies to the given time.

Syntax

PYTHON
time.localtime([secs])

See Also

gmtime() None time() localtime() OverflowError OSError