PyDocs

Nav

Generic Operating System Services

struct_time

time

class
  • struct_time(iterable=(), /)
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.

Note that several fields' values are not the same as those defined by
the C language standard for struct tm.  For example, the value of the
field tm_year is the actual year, not year - 1900.  See individual
fields' descriptions for details.
Members of struct_time

t

tm_gmtoff
offset from UTC in seconds
tm_hour
hours, range [0, 23]
tm_isdst
1 if summer time is in effect, 0 if not, and -1 if unknown
tm_mday
day of month, range [1, 31]
tm_min
minutes, range [0, 59]
tm_mon
month of year, range [1, 12]
tm_sec
seconds, range [0, 61])
tm_wday
day of week, range [0, 6], Monday is 0
tm_yday
day of year, range [1, 366]
tm_year
year, for example, 1993
tm_zone
abbreviation of timezone name
0 Examples
No examples for time/struct_time.
See Also
No see-alsos for time/struct_time
0 Notes
No notes for struct_time