Converts a time string in 24-hour format to 12-hour format. Returns an empty string if the input is invalid.
A string representing the time in 24-hour format (e.g., "16:30")
The time formatted as 12-hour string ("hh:mm a"), in local time zone.
Converts a time string in 24-hour format to 12-hour format. Returns an empty string if the input is invalid.