Parses a string representation of time into a Time object.

  • Parameters

    • time: null | string

      The string representation of time to parse.

    Returns null | Time

    • The parsed Time object or null if input is null or invalid.