Java tutorial
//package com.java2s; import java.util.GregorianCalendar; public class Main { public static float getTime() { GregorianCalendar now = new GregorianCalendar(); float x = now.get(GregorianCalendar.HOUR_OF_DAY); float y = now.get(GregorianCalendar.MINUTE); y = y / 100; x = x + y; return x; } }