Here you can find the source of currentTimeSeconds()
public static long currentTimeSeconds()
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w ww . j a v a 2s . c om*/ * A method to get the unix time... * * @return The current time in seconds */ public static long currentTimeSeconds() { return (System.currentTimeMillis() / 1000); } }