Java Number Round roundTimeStamp(long tstamp)

Here you can find the source of roundTimeStamp(long tstamp)

Description

round Time Stamp

License

Open Source License

Declaration

public static long roundTimeStamp(long tstamp) 

Method Source Code

//package com.java2s;
/*//from  w  w  w  .jav  a  2  s.  c  om
 * ====================================================================
 * Copyright (c) 2004-2010 TMate Software Ltd.  All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at http://svnkit.com/license.html
 * If newer versions of this license are posted there, you may use a
 * newer version instead, at your option.
 * ====================================================================
 */

public class Main {
    public static long roundTimeStamp(long tstamp) {
        return (tstamp / 1000) * 1000;
    }
}

Related

  1. roundsToTicks(double x)
  2. roundStr(Double value, int decimal)
  3. roundString(double d)
  4. roundString(double n, double range, double precision)
  5. roundTime24h(final long defaultUnitValue)
  6. roundTimeValue(final float defaultUnitValue, final boolean is24HourFormatting)
  7. roundTo(double aValue, int aDigits)
  8. roundTo(double d, int n)
  9. roundTo(double num, int dp)