codice:
new SimpleDateFormat("HH").format(new Date(System.currentTimeMillis()));
P.S.: restituisce String