The Hub is now in read-only mode as we make improvements to the Hub experience. More information is available here.
04-11-2023 11:58 PM - last edited on 07-06-2023 05:08 PM by LouB
Hi everyone!
In the getActivity api response there is only start_date and no end_date. Currently I need to know the time when the most users finish their activity. i want to know exactly total time from start to end activity (moving time, elapsed_time, pause activity time )
Thanks everyone!
04-13-2023 05:11 PM
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
04-28-2023 09:42 AM
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:
Welcome to the Community - here is your guide to help you get started!