Here you can find the source of currentTimeSecond()
public static int currentTimeSecond()
//package com.java2s; //License from project: Apache License public class Main { public static int currentTimeSecond() { return Long.valueOf(System.currentTimeMillis() / 1000).intValue(); }/*from w w w . ja va 2s.c om*/ }