Java Utililty Methods Millisecond to Hour

List of utility methods to do Millisecond to Hour

Description

The list of methods to do Millisecond to Hour are organized into topic(s).

Method

longmillisToHours(long millis)
millis To Hours
return millis / 1000 / 60 / 60;
longtime2millis(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) 
...
longtimeAsMillis(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;
inttimeToMillis(int hours, int minutes, int seconds, int millis)
time To Millis
return ((hours * 60 + minutes) * 60 + seconds) * 1000 + millis;