Return Day of Week
dow, isdst = time.dayofweek(tm)
Returns the day of week for the given date + time.
Parameter | Type | Description |
---|---|---|
tm |
integer | UNIX Time |
Returns | Type | Description |
---|---|---|
dow |
integer | Day of week. 1 = Sunday, 2 = Monday, etc. |
isdst |
boolean | True if daylight saving. |
Does not work with days prior to 1970.