Java BigDecimal to convertSecondsToMillis(BigDecimal seconds)

Here you can find the source of convertSecondsToMillis(BigDecimal seconds)

Description

Number of second = # of seconds * 1000 millis

License

Apache License

Parameter

Parameter Description
seconds a parameter

Return

seconds converted to milliseconds

Declaration

private static BigDecimal convertSecondsToMillis(BigDecimal seconds) 

Method Source Code


//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));
    }
}

Related

  1. convertFeetToInches(BigDecimal feet)
  2. convertHoursToMillis(BigDecimal hours)
  3. convertNullToBigDecimal(Object orgStr)
  4. convertRadiansToDegrees(BigDecimal radians)
  5. convertRating(BigDecimal rating)
  6. convertStringToBigDecimal(String strValue)
  7. convertToBigDecimal(final Object o)
  8. convertToBigDecimal(Object sourceValue)
  9. convertToBigDecimal(String s)