obspy.core.utcdatetime.UTCDateTime.isoweekday

UTCDateTime.isoweekday()[source]

Return the day of the week as an integer (Monday is 1, Sunday is 7).

Return type:

int

Returns:

Returns day of the week as an integer, where Monday is 1 and Sunday is 7.

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020)
>>> dt.isoweekday()
3