Java simple Timestamp to Date conversion
Just use the Java Calendar class.
Calendar c = new GregorianCalendar(); // This creates a Calendar instance with the current timemHour = c.get(Calendar.HOUR);mMinute = c.get(Calendar.MINUTE);
Also note that your Android emulator will return times in GMT for the current time. I advise testing this type of code on a real device.