Here you can find the source of convertSecondsToMillis(BigDecimal seconds)
Parameter | Description |
---|---|
seconds | a parameter |
private static BigDecimal convertSecondsToMillis(BigDecimal seconds)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { /**// ww w . j av a 2 s . c om * Number of second = # of seconds * 1000 millis * @param seconds * @return seconds converted to milliseconds */ private static BigDecimal convertSecondsToMillis(BigDecimal seconds) { return seconds.multiply(new BigDecimal(1000)); } }