Convert 2:30 to 12-hours format.
Conversion from 24-hour format to 12-hour format:
If the given time is greater than 12:00, then
24 hour time - 12:00 = time in PM
If the given time is lesser than 12:00,
then it remains the same time as AM
If the given time is 00:00 in 24-hours, then it is 12 AM.
If the given time is 12:00 in 24-hours, then it is 12 PM.
2:30 will be 2:30 AM in 12-hour format.