Java floor floorSec(long valueMs)

Here you can find the source of floorSec(long valueMs)

Description

floor Sec

License

Apache License

Declaration

public static long floorSec(long valueMs) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static final int SECOND = 1000;

    public static long floorSec(long valueMs) {
        return convertToSec(valueMs) * SECOND;
    }/*from  w w  w. j  av a2s  . c o m*/

    public static long convertToSec(long valueMs) {
        if (valueMs == 0)
            return 0;
        return valueMs / SECOND;
    }
}

Related

  1. floorPowerOf2(final int n)
  2. floorPowerOf2(final int x)
  3. floorPowerOf2(int n)
  4. floorPowerOfTwo(final int a)
  5. floorSec(long milli)
  6. floorSqrt(long i)
  7. floorToLong(float pX)
  8. floorToNearestNumberDivisibleByFour(long number)
  9. floorToPowerofTwo(int i)