obspy.core.utcdatetime.UTCDateTime.__str__

UTCDateTime.__str__()[source]

Returns ISO8601 string representation from current UTCDateTime object.

Returns:string

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020)
>>> str(dt)
'2008-10-01T12:30:35.045020Z'