Here you can find the source of currentTimeAsSeconds()
public static long currentTimeAsSeconds()
//package com.java2s; //License from project: Open Source License public class Main { public static long currentTimeAsSeconds() { return System.currentTimeMillis() / 1000; }/* ww w . j a v a 2s. co m*/ }