Why does parsing '23:00 PM' with SimpleDateFormat(“hh:mm aa”) return 11 a.m.?

前端 未结 6 2024
我寻月下人不归
我寻月下人不归 2020-12-09 19:30

Why does parsing \'23:00 PM\' with SimpleDateFormat(\"hh:mm aa\") return 11 a.m.?

6条回答
  •  感情败类
    2020-12-09 20:26

    23:00 PM could be thought of as 11 AM the next day. Javascript and PHP work like this pretty much but I can't speak for Java.

提交回复
热议问题