Here you can find the source of getCurrentTimeSeconds()
public static long getCurrentTimeSeconds()
//package com.java2s; //License from project: Apache License public class Main { /**/*from ww w.j ava 2s .c om*/ * Get CurrentTime in Seconds * * @return CurrentTime in Seconds */ public static long getCurrentTimeSeconds() { return System.currentTimeMillis() / 1000; } }