getDifference

fun getDifference(startTime: Long, endTime: Long, rTimeConst: String): Long

method to get minutes from start and end time

Return

hours as Long and minutes will be removed

Parameters

startTime

provide start time in millis

endTime

provide end time in millis

rTimeConst

pass RTimeConstant value, like if you want return type as hour then pass RTimeConstant.HOUR, if min then RTimeConstant.MIN and so on. You can only use DAY,HOUR or MIN, don't use other values, in other cases it will return min only