Here you can find the source of getCurrentTimeInSeconds()
public static Long getCurrentTimeInSeconds()
//package com.java2s; /*L//w ww .ja v a 2s.co m * Copyright Washington University in St. Louis * Copyright SemanticBits * Copyright Persistent Systems * Copyright Krishagni * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/catissue-migration-tool/LICENSE.txt for details. */ public class Main { public static Long getCurrentTimeInSeconds() { return System.currentTimeMillis() / 1000; } }