Java Number Convert convertFromMsToMinutes(Integer duration)

Here you can find the source of convertFromMsToMinutes(Integer duration)

Description

convert From Ms To Minutes

License

Open Source License

Declaration

public static Integer convertFromMsToMinutes(Integer duration) 

Method Source Code

//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
}

Related

  1. convertBytesToKBytes(String value)
  2. convertBytesToUnit(long bytes)
  3. convertCount(Object obj)
  4. convertDurationToMillis(String time)
  5. convertedFileSize(Long fileSize)
  6. convertGeoCoordinateToDouble(int point)
  7. convertImperialToMetric(String areaImp)
  8. convertJcoDecimalDefaultValue( String jcoDefaultDecimalValue)
  9. convertMB2GB(int valueMB)