Here you can find the source of get24Hour()
public static int get24Hour()
//package com.java2s; import java.util.Calendar; public class Main { public static Calendar calendar = Calendar.getInstance(); public static int get24Hour() { return calendar.get(Calendar.HOUR_OF_DAY); }// w ww .j av a 2 s .c o m }