obspy.core.utcdatetime.UTCDateTime.format_iris_web_service

UTCDateTime.format_iris_web_service()[source]

Returns string representation usable for the IRIS Web services.

Returns:string

Example

>>> dt = UTCDateTime(2008, 5, 27, 12, 30, 35, 45020)
>>> print(dt.format_iris_web_service())
2008-05-27T12:30:35.045