obspy.io.sh.core.from_utcdatetime

from_utcdatetime(dt)[source]

Converts UTCDateTime object into a time string used within Seismic Handler.

Parameters

dt (UTCDateTime) – A UTCDateTime object.

Returns

Converted date time string usable by Seismic Handler.

Example

>>> from obspy import UTCDateTime
>>> dt = UTCDateTime(2008, 1, 2, 3, 4, 5, 123456)
>>> print(from_utcdatetime(dt))
 2-JAN-2008_03:04:05.123