heartandsole.Activity.timestamp.end

Activity.timestamp.end(source='records')[source]

Return end time as a datetime.

Parameters

source (str) –

Source from which to obtain end time.

  • records (default): last timestamp in the records DataFrame.

  • summary: last end timestamp in the summary Series.

  • laps: last end timestamp in the laps DataFrame.

Returns

End time according to the requested source. If the Activity does not possess the requested data source, return None.

Return type

pandas.Timestamp, datetime.datetime, or None

Raises

ValueError – If source is not a valid option.