Here you can find the source of getNbSecondsFromHour(int hour)
public static int getNbSecondsFromHour(int hour)
//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; } }