Java Milliseconds dayValue2Millisecond(int dayValue)

Here you can find the source of dayValue2Millisecond(int dayValue)

Description

1 day = 1*24*60*60*1000 millisecond.

License

Open Source License

Parameter

Parameter Description
dayValue a parameter

Declaration

public static int dayValue2Millisecond(int dayValue) 

Method Source Code

//package com.java2s;
/*//from w w  w . j  a  va2s . c  o m
* @(#)Utility.java
*
* Copyright (c) 2003 DCIVision Ltd
* All rights reserved.
*
* This software is the confidential and proprietary information of DCIVision
* Ltd ("Confidential Information").  You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of the license
* agreement you entered into with DCIVision Ltd.
 */

public class Main {
    /**
     * 1 day = 1*24*60*60*1000 millisecond.
     * 
     * @param dayValue
     * @return
     */
    public static int dayValue2Millisecond(int dayValue) {
        return (dayValue * 24 * 60 * 60 * 1000);
    }
}

Related

  1. cutoffTimeMillis(long time)
  2. cyclesToMillis(long cycles, double hz)
  3. dateToMillis(Date date)
  4. dateToMillis(Date date)
  5. dateToMillis(long now)
  6. decomposeMillis(long millis)
  7. delayUntilNextSecond(int millis)
  8. diffInMillis(long instantOne, long instantTwo)
  9. diffMillisec(String lhs, String rhs)