Here you can find the source of convertFromMsToMinutes(Integer duration)
public static Integer convertFromMsToMinutes(Integer duration)
//package com.java2s; import java.math.BigDecimal; public class Main { public final static int SECONDS_IN_MINUTE = 60; public final static int MILISECONDS_IN_SECOND = 1000; public static Integer convertFromMsToMinutes(Integer duration) { return (duration != null) ? duration / MILISECONDS_IN_SECOND / SECONDS_IN_MINUTE : BigDecimal.ZERO.intValue(); }//from w ww . j a v a 2s .c o m }