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

    Function ToDays

    • Converts a numeric time value from a specified unit to the equivalent number of days.

      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 days.

      4.0.0

      2021-12-14