How to know time format, not 12, but 24 hours?

This command displays a clock in 12-hour format.
hour=c.get(c.HOUR);
How to get the time in 24?
July 9th 19 at 13:42
1 answer
July 9th 19 at 13:44
Solution
Staff telepath suggested that with is Calendar.
You will need to either use a Calendar.HOUR_OF_DAY instead of Calendar.HOUR or use a Calendar.HOUR and Calendar.AM_PM, in order to understand before 12 or after time.
Access staticheskie fields through the instance - that's bad.

Find more questions by tags Java