Java Day to Milliseconds daysToMillis(long days)

Here you can find the source of daysToMillis(long days)

Description

Convert a number of days to milliseconds

License

Open Source License

Parameter

Parameter Description
days days

Return

milliseconds

Declaration

public static long daysToMillis(long days) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from  w  w w  .j av  a2s.c  o m
     * Convert a number of days to milliseconds
     * 
     * @param days days
     * @return milliseconds
     */
    public static long daysToMillis(long days) {
        return days * 24l * 60l * 60l * 1000l;
    }
}

Related

  1. day2Millisecode(int days)
  2. dayMillis()
  3. daysToMillis(double days)
  4. daysToMillis(final int days)
  5. daysToMillis(int days)