Function timeArrayToIntUnsafe

  • Converts an array of time values into an integer. The array should contain four elements representing hours, minutes, seconds, and milliseconds respectively. This function does not perform any safety checks, so it's up to the caller to ensure the input is valid.

    Parameters

    • array: number[]

      An array of four numbers representing hours, minutes, seconds, and milliseconds.

    Returns number

    The time represented as an integer in milliseconds.

    Remarks

    This function does not perform any safety checks, so it's up to the caller to ensure the input is valid.

    Throws

    This function does not throw any exceptions.

    Example

    const time = [1, 30, 45, 500]; // 1 hour, 30 minutes, 45 seconds, and 500 milliseconds
    const result = timeArrayToIntUnsafe(time);
    console.log(result); // Outputs: 5445500

Generated using TypeDoc