You must clone the DigitalClock.java file for use in your application, modify it as follows: -
private final static String m12 = "h:mm aa"; private final static String m24 = "k:mm";
Path to DigitalClock.java: Here file
abhishek kumar gupta
source share