obspy.core.utcdatetime.UTCDateTime.timetz

UTCDateTime.timetz()[source]

Return time object with same hour, minute, second, microsecond, and tzinfo attributes. See also method datetime.datetime.time().

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020)
>>> dt.timetz()
datetime.time(12, 30, 35, 45020)