Java Number Min Value min2msec(int min)

Here you can find the source of min2msec(int min)

Description

converts minute to millisecond

License

Open Source License

Parameter

Parameter Description
min time as minute

Return

time as millisecond

Declaration

public static long min2msec(int min) 

Method Source Code

//package com.java2s;
/*/*  w w  w .ja va 2  s. c  om*/
 License:
    
 blueprint-sdk is licensed under the terms of Eclipse Public License(EPL) v1.0
 (http://www.eclipse.org/legal/epl-v10.html)
    
    
 Distribution:
    
 Repository - https://github.com/lempel/blueprint-sdk.git
 Blog - http://lempel.egloos.com
 */

public class Main {
    /**
     * converts minute to millisecond
     *
     * @param min time as minute
     * @return time as millisecond
     */
    public static long min2msec(int min) {
        return sec2msec(min * 60);
    }

    /**
     * @param sec time as second
     * @return time as millisecond
     */
    public static long sec2msec(int sec) {
        return sec * 1000;
    }
}

Related

  1. min(T c1, T c2)
  2. min(T v1, T v2)
  3. min(T v1, T v2, int nullSupport)
  4. min2(double a, double b)
  5. min2(int a, int b)
  6. min2sex(Integer minutes)
  7. min3(double a, double b, double c)
  8. min3(final int x, final int y, final int z)
  9. min3(int a, int b, int c)