How to get the current time in Android?
When i use
int hours = java.sql.Time.this.getHours();
i get the error:
No
My favorite sample:
Time dtNow = new Time(); dtNow.setToNow(); int hours = dtNow.hour; String lsNow = dtNow.format("%Y.%m.%d %H:%M"); String lsYMD = dtNow.toString(); // YYYYMMDDTHHMMSS