obspy.core.utcdatetime.UTCDateTime.format_seed

UTCDateTime.format_seed(compact=False)[source]

Returns string representation for a SEED volume.

Parameters:

compact (bool, optional) – Delivers a compact SEED date string if enabled. Default value is set to False.

Return type:

str

Returns:

Datetime string in the SEED format.

Example

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