Java Millisecond Convert toMillis(int seconds)

Here you can find the source of toMillis(int seconds)

Description

to Millis

License

Open Source License

Declaration

public static long toMillis(int seconds) 

Method Source Code

//package com.java2s;
/**//from   www . j  a  va 2s . co m
 * "Utils" Java class is free software: you can redistribute
 * it and/or modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation, either version 3 of
 * the License, or (at your option) any later version always keeping
 * the additional terms specified in this license.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 *
 * Additional Terms of this License
 * --------------------------------
 *
 * 1. It is Required the preservation of specified reasonable legal notices
 *   and author attributions in that material and in the Appropriate Legal
 *   Notices displayed by works containing it.
 *
 * 2. It is limited the use for publicity purposes of names of licensors or
 *   authors of the material.
 *
 * 3. It is Required indemnification of licensors and authors of that material
 *   by anyone who conveys the material (or modified versions of it) with
 *   contractual assumptions of liability to the recipient, for any liability
 *   that these contractual assumptions directly impose on those licensors
 *   and authors.
 *
 * 4. It is Prohibited misrepresentation of the origin of that material, and it is
 *   required that modified versions of such material be marked in reasonable
 *   ways as different from the original version.
 *
 * 5. It is Declined to grant rights under trademark law for use of some trade
 *   names, trademarks, or service marks.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program (lgpl.txt).  If not, see <http://www.gnu.org/licenses/>
 */

public class Main {
    public static long toMillis(int seconds) {
        return ((long) seconds) * 1000;
    }
}

Related

  1. millisToTime(long ms)
  2. millisToTimeSpan(final long interv)
  3. millisToTimeSpan(long millis)
  4. MillisToTimeString(long millis)
  5. millisToWords(long millis)
  6. toMillis(int timeInSecs)
  7. toMillis(long nanos)
  8. toMilliSeconds(float t)
  9. toMilliseconds(long nanoseconds)