kaven-basic - v6.0.0
    Preparing search index...

    Function ToSeconds

    • Converts a numeric time value from the specified unit to seconds.

      Parameters

      • num: number

        The numeric value representing the amount of time.

      • currentUnit: "milliseconds" | "seconds" | "minutes" | "hours" | "days" | "weeks"

        The unit of the input time value (e.g., milliseconds, minutes, hours).

      Returns number

      The equivalent time in seconds.

      4.0.0

      2021-12-14