Function timeIntToArray

  • Converts a time integer into an array of hours, minutes, and seconds.

    Parameters

    • ms: number

      The time integer to convert, represented in milliseconds.

    Returns number[]

    An array of three numbers representing hours, minutes, and seconds respectively.

    Remarks

    This function will throw an error if the provided time integer is not valid.

    Throws

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

    Example

    const timeArray = timeIntToArray(3600000); // returns [1, 0, 0]
    

Generated using TypeDoc