Skip to content

Function: getRoundedSeconds()

function getRoundedSeconds(
seconds,
roundingInterval,
roundingDirection): number;

Defined in: shared/src/helper/workHelper/workHelperFunctions.ts:24

Rounds the seconds to the nearest rounding interval

ParameterTypeDescription
secondsnumberThe seconds to round
roundingIntervalnumberThe rounding interval in minutes
roundingDirection"up" | "down" | "nearest"The rounding direction

number

The rounded seconds