public static double deltaHours ( int calUnit , int increments ) { if ( calUnit == Calendar . DATE ) { return 24 * increments ; } else if ( calUnit == Calendar . HOUR ) { return increments ; } else if ( calUnit == Calendar . MINUTE ) { return increments / 60 ; } else if ( calUnit == Calendar . SECOND ) { return increments / 3600 ; } return - 1 ; }
This used to be deltim in MMS .