obspy.core.trace.Trace.times

Trace.times()[source]

For convenient plotting compute a NumPy array of seconds since starttime corresponding to the samples in Trace.

Return type:ndarray or MaskedArray
Returns:An array of time samples in an ndarray if the trace doesn’t have any gaps or a MaskedArray otherwise.