obspy.core.utcdatetime.UTCDateTime.__add__

UTCDateTime.__add__(value)[source]

Adds seconds and microseconds to current UTCDateTime object.

Parameters:value (int, float) Seconds to add
Return type:UTCDateTime
Returns:New UTCDateTime object.

Example

>>> dt = UTCDateTime(1970, 1, 1, 0, 0)
>>> dt + 2
UTCDateTime(1970, 1, 1, 0, 0, 2)
>>> UTCDateTime(1970, 1, 1, 0, 0) + 1.123456
UTCDateTime(1970, 1, 1, 0, 0, 1, 123456)