obspy.core.utcdatetime.UTCDateTime.timestamp

property UTCDateTime.timestamp

Returns UTC timestamp in seconds.

Return type:

float

Returns:

Timestamp in seconds.

Example

>>> dt = UTCDateTime(2008, 10, 1, 12, 30, 35, 123456)
>>> dt.timestamp
1222864235.123456