obspy.core.utcdatetime.UTCDateTime.weekday

property UTCDateTime.weekday

Return the day of the week as an integer (Monday is 0, Sunday is 6).

Return type:

int

Returns:

Returns day of the week as an integer, where Monday is 0 and Sunday is 6.

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020)
>>> dt.weekday
2