Converts a time string in 24-hour format to 12-hour format. Returns an empty string if the input is invalid.

  • Parameters

    • value: string

      A string representing the time in 24-hour format (e.g., "16:30")

    Returns string

    The time formatted as 12-hour string ("hh:mm a"), in local time zone.