moving_time: is the exact time of the activity in seconds
elapsed_time: is the duration of the activity with some movement
pause activity time: moving_time-elapsed_time
With timestamp or timedelta you can take the finish datetime
I believe you've flipped the meaning of moving_time and elapsed_time.
elapsed_time is the total amount of time from when the activity started to when it ended, including all pauses.
moving_time is the number of seconds spent actively moving (elapsed_time - paused time)
Both moving_time and elapsed_time are provided in getActivity. So for the requested information:
- moving_time is moving_time from getActivity
- elapsed_time is elapsed_time from getActivity
- Activity start time is start_date from getActivity (note: start_date is GMT, use start_date_local for local timezone)
- pause_activity_time = elapsed_time - moving_time
- Activity end time is start_date + elapsed_time