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

    Function ToMilliseconds

    • Converts a time span object to its equivalent duration in milliseconds.

      Parameters

      • span: ITimeSpan

        The time span object to convert.

      Returns number

      The total number of milliseconds represented by the time span.

      4.0.0

      2025-07-09

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

      Parameters

      • num: number

        The numeric value to convert.

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

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

      Returns number

      The equivalent value in milliseconds.

      4.0.0

      2023-11-27