Here you can find the source of getCurrentJnlpTimestamp()
public static String getCurrentJnlpTimestamp()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String JNLP_TIMESTAMP_PREFIX = "TS: "; public static final String JNLP_TIMESTAMP_DATETIME_FORMAT = "YYYY-MM-DD hh:mm:ss"; public static String getCurrentJnlpTimestamp() { return getJnlpTimestamp(new Date()); }/*ww w. java 2s . co m*/ public static String getJnlpTimestamp(Date date) { final SimpleDateFormat dateFormat = new SimpleDateFormat(JNLP_TIMESTAMP_DATETIME_FORMAT); return JNLP_TIMESTAMP_PREFIX + dateFormat.format(date); } }