• Construct a Duration from a given number of milliseconds.

    Throws

    If a negative value is provided.

    Returns

    Duration corresponding to the provided value.

    Parameters

    • value: number | bigint

      Number of milliseconds

    Returns Duration

Generated using TypeDoc