Here you can find the source of getMicroSec(BigDecimal hours)
public static long getMicroSec(BigDecimal hours)
//package com.java2s; //License from project: Apache License import java.math.BigDecimal; public class Main { public static long getMicroSec(BigDecimal hours) { BigDecimal bd;// w ww.ja v a2 s .c om bd = hours.multiply(new BigDecimal(3600 * 1000)); return bd.longValue(); } }