heartandsole.Activity.timestamp.start

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

Return start time as a datetime.

Parameters

source (str) –

Source from which to obtain start time.

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

  • summary: first start timestamp in the summary Series.

  • laps: first start timestamp in the laps DataFrame.

Returns

Start 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.