Here you can find the source of getTimestamp()
private static String getTimestamp()
//package com.java2s; public class Main { /**/* w w w . ja v a2 s. c o m*/ * generate current timestamp * * @return */ // ---------------------------------------------------------------------------------- private static String getTimestamp() { return "" + (System.currentTimeMillis() / 1000); } }