Here you can find the source of getTimeStamp()
public static String getTimeStamp()
//package com.java2s; public class Main { public static String getTimeStamp() { return String.valueOf(System.currentTimeMillis() / 1000); }//from w w w . j a va 2s . c o m }