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

    Function ToWeeks

    • Converts a given time value from a specified unit to weeks.

      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., seconds, minutes, hours).

      Returns number

      The equivalent time in weeks.

      4.0.0

      2021-12-14