obspy.core.utcdatetime.UTCDateTime.formatSEED

UTCDateTime.formatSEED(compact=False)[source]

Returns string representation for a SEED volume.

Parameters:compact (boolean, optional) Delivers a compact SEED date string if enabled. Default value is set to False.
Return type:string
Returns:Datetime string in the SEED format.

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 45020)
>>> dt.formatSEED()
'2008,275,12:30:35.0450'
>>> dt = UTCDateTime(2008, 10, 1, 0, 30, 0, 0)
>>> dt.formatSEED(compact=True)
'2008,275,00:30'

This Page