Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StructTimeType = objects.NewStructSeqType("time.struct_time", []objects.StructSeqField{
{Name: "tm_year", Doc: "year, for example, 1993"},
{Name: "tm_mon", Doc: "month of year, range [1, 12]"},
{Name: "tm_mday", Doc: "day of month, range [1, 31]"},
{Name: "tm_hour", Doc: "hours, range [0, 23]"},
{Name: "tm_min", Doc: "minutes, range [0, 59]"},
{Name: "tm_sec", Doc: "seconds, range [0, 61])"},
{Name: "tm_wday", Doc: "day of week, range [0, 6], Monday is 0"},
{Name: "tm_yday", Doc: "day of year, range [1, 366]"},
{Name: "tm_isdst", Doc: "1 if summer time is in effect, 0 if not, and -1 if unknown"},
{Name: "tm_zone", Doc: "abbreviation of timezone name"},
{Name: "tm_gmtoff", Doc: "offset from UTC in seconds"},
})
StructTimeType is the time.struct_time named-tuple type. Eleven fields: nine documented integers plus tm_zone (str) and tm_gmtoff (int). Subclassing tuple means isinstance(t, tuple) holds.
CPython: Modules/timemodule.c:420 struct_time_type_fields
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.