Function timeStringToInt

  • Converts a time string to an integer.

    Parameters

    • string: string

      The time string to be converted.

    Returns number

    The integer representation of the provided time string.

    Remarks

    This function takes a string representation of time and converts it into an integer. The string should be in the format "HH:MM:SS".

    Throws

    Will throw an error if the input string is not in the correct format.

    Example

    timeStringToInt("12:34:56"); // returns 45296
    

Generated using TypeDoc