Here you can find the source of currentTimeStamp()
public static String currentTimeStamp()
//package com.java2s; public class Main { /** Return current date and time in terse format */// ww w. j av a 2 s .com public static String currentTimeStamp() { java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("MM/dd/yy HH:mm:ss"); return df.format(new java.util.Date(System.currentTimeMillis())) + " "; } }