Function isValidTimeString

  • Checks if a given string is a valid time string.

    Parameters

    • string: string

      The string to be checked.

    Returns boolean

    A boolean indicating whether the string is a valid time string.

    Remarks

    This function is part of the TimeUtils library.

    Throws

    Will throw an error if the input string is not a string.

    Example

    isValidTimeString("12:34:56") // returns true
    isValidTimeString("25:00:00") // returns false

Generated using TypeDoc