Here you can find the source of getJnlpTimestamp(Date date)
public static String getJnlpTimestamp(Date date)
//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 getJnlpTimestamp(Date date) { final SimpleDateFormat dateFormat = new SimpleDateFormat(JNLP_TIMESTAMP_DATETIME_FORMAT); return JNLP_TIMESTAMP_PREFIX + dateFormat.format(date); }//from w ww . j a v a 2 s.c o m }