How to set correct time with AM PM with Calendar object?

后端 未结 0 538
我在风中等你
我在风中等你 2021-01-12 20:42

Simple question why the result is like the following for this code:

    Calendar cal2 = Calendar.getInstance();
    cal2.set(Calendar.HOUR, 12);
    cal2.set(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题