Java Second Get getNbSecondsFromHour(int hour)

Here you can find the source of getNbSecondsFromHour(int hour)

Description

get Nb Seconds From Hour

License

LGPL

Declaration

public static int getNbSecondsFromHour(int hour) 

Method Source Code

//package com.java2s;
/*/*from w  w  w .j  av  a 2 s. co  m*/
 * JLib - Publicitas Java library v1.2.0.
 *
 * Copyright (c) 2005, 2006, 2007, 2008, 2009 Publicitas SA.
 * Licensed under LGPL (LGPL-LICENSE.txt) license.
 */

public class Main {
    public static int getNbSecondsFromHour(int hour) {
        int n = ((hour / 10000) * 3600) + ((hour % 10000) / 100 * 60) + ((hour % 100));
        return n;
    }
}

Related

  1. getCurrentTimeSeconds()
  2. getDayFromSeconds(long seconds)
  3. getFramesFromSeconds(Double seconds)
  4. getMSTimeInSeconds(final String timeStr)
  5. getMultiplierForCmPerSecondsFromSpeedUnits(String speedUnits)
  6. getNiceStringForSeconds(String timeInSeconds)
  7. getNumberOfSecondsBetween(final double d1, final double d2)
  8. getRemainingSeconds(final long ms)
  9. getRoundedSeconds(long seconds, long interval)