Here you can find the source of getCurrentSecondString()
public static String getCurrentSecondString()
//package com.java2s; //License from project: Apache License public class Main { /**/*from www.j a va 2 s . co m*/ * Returns a string of current timestamp with second precision. * * @return A string containing the current timestamp. */ public static String getCurrentSecondString() { return String.valueOf(System.currentTimeMillis() / 1000); } }