Write a java program that converts the hours in military time (0…..23) to hours in standard time (1…12)
Answers
Answered by
0
Answer:
Input : A single string containing a time in 12-hour
clock format(hh:mm:ss AM or hh:mm:ss PM
where 01 <= hh <= 12 or 01 <= mm,ss <= 59
Output :Convert and print the given time in 24-hour format,
where 00 <= hh <= 23
Input : 07:05:45PM
Output : 19:05:45
Similar questions