calculateaveragetime
Reactive icon

CalculateAverageTime

version 0.0.1 (Compatible with OutSystems 11)
Uploaded
 on 16 October 2024
 by 
0.0
 (0 ratings)
calculateaveragetime

CalculateAverageTime

Details
It returns you an average time (Time type) according to the Time List you provide. There's no action on OutSystems platform to do that automatically, so with the educational purpose I've decided to publish this step-by-step logic to help other developers to calculate it.
Read more

With a Time List provided, the logic performs a loop geting the current Time (#HH:mm:ss#) and converting it in seconds (Integer).
Then it summarizes with the other times on the SecondsSum variable.
The SecondsSum variable is divided by the Time List length, providing the average time in seconds.
And finally it converts the time in seconds back to the Time format (#HH:mm:ss#), returning it on the FormattedAverageTime output parameter.

Release notes (0.0.1)
License (0.0.1)
Reviews (0)
Team
Other assets in this category