Here you can find the source of getTimestamp()
public static String getTimestamp()
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static DateFormat D16 = new SimpleDateFormat("yyyyMMdd'T'HHmmss'Z'"); public static String getTimestamp() { synchronized (D16) { return D16.format(new Date()); }//from ww w. j av a 2 s .com } }