Home > Back-end > Java a matter of time, 21 hours turn 12 hours system, the problem is when zero
Java a matter of time, 21 hours turn 12 hours system, the problem is when zero
Time:10-27
Input: the 2020-11-11 00:21:00
Now realize output: 2020/11/11 21 points 12 a.m. Ask, how to realize 2020/11/11 21 points 0 o 'clock in the morning New answers, your bosses don't spray, thank you
CodePudding user response:
Well, 0 (24) is not zero o 'clock in the morning, is 0 p.m. at 12 o 'clock