Here you can find the source of secondsToMillis(int timeInSecs)
Parameter | Description |
---|---|
timeInSecs | the time in seconds |
public static long secondsToMillis(int timeInSecs)
//package com.java2s; //License from project: Apache License public class Main { public final static int SECOND_IN_MILLISECONDS = 1000; /**//from w w w . j a v a 2 s. c o m * Converts seconds to milliseconds, with a precision of 1 second * @param timeInSecs the time in seconds * @return The equivalent time in milliseconds */ public static long secondsToMillis(int timeInSecs) { return timeInSecs * SECOND_IN_MILLISECONDS; } }