Function timeArrayToInt

  • Converts an array of time values into an integer.

    Parameters

    • array: number[]

      The array of time values to convert.

    Returns number

    The converted integer value.

    Remarks

    This function asserts that the provided array is a valid time array before performing the conversion.

    Throws

    Will throw an error if the provided array is not a valid time array.

    Example

    const timeArray = [12, 30, 15];
    const result = timeArrayToInt(timeArray);
    console.log(result); // Expected output: 123015

Generated using TypeDoc