Parses a value into a Time object.

The inputs to parse.

A Time object corresponding to the input. If unable to parse successfully, will return an invalid Time.

  • Parses a value into a Time object.

    Parameters

    • input: unknown

      The input to parse.

    Returns Time

    A Time object corresponding to the input. If unable to parse successfully, will return an invalid Time.

  • Parses a value into a Time object.

    Parameters

    Returns Time

    A Time object corresponding to the input. If unable to parse successfully, will return an invalid Time.

  • Parses a value into a Time object.

    Parameters

    • options: ParseOptions

      The options to use for parsing.

    • input: unknown

      The input to parse.

    Returns Time

    A Time object corresponding to the input. If unable to parse successfully, will return an invalid Time.