Python‎ > ‎time‎ > ‎

time.struct_time

http://www.adilwaseem.com/

Introduction
The time value as returned by gmtime(), localtime(), and strptime(), and accepted by asctime(), mktime() and strftime(). May be considered as a sequence of 9 integers.

Syntax
struct_time
builtins.tuple
builtins.object

Parameters
N/A

Import module
Importing module is required in the Shell window and the Editor window.

Example
Return time value by local time.
 >>>import time
>>> time.struct_time(time.localtime())
time.struct_time(tm_year=2015, tm_mon=1, tm_mday=30, tm_hour=23, tm_min=12, tm_sec=51, tm_wday=4, tm_yday=30, tm_isdst=0)
>>>

Comments