List of utility methods to do Millisecond to Hour
long | millisToHours(long millis) millis To Hours return millis / 1000 / 60 / 60;
|
long | time2millis(int year, int mon, int day, int hours, int mins, int secs) Converts Gregorian date to milliseconds since 1970-01-01 00:00:00 . if (0 >= (mon -= 2)) { mon += 12; year -= 1; return ((((((long) (year / 4 - year / 100 + year / 400 + 367 * mon / 12 + day) + year * 365 - 719499)) * 24l + hours) * 60l + mins) ... |
long | timeAsMillis(int days, int hours, int minutes, int seconds, int millis) time As Millis return days * 24 * 60 * 60 * 1000 + hours * 60 * 60 * 1000 + minutes * 60 * 1000 + seconds * 1000 + millis;
|
int | timeToMillis(int hours, int minutes, int seconds, int millis) time To Millis return ((hours * 60 + minutes) * 60 + seconds) * 1000 + millis;
|