Here you can find the source of getFormattedTimeFilesafe(long t)
public static String getFormattedTimeFilesafe(long t)
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { private static final DateFormat dateFormattingFilesafe = new SimpleDateFormat( "MM-dd-yyyy_HH;mm;ss"); public static String getFormattedTimeFilesafe(long t) { return dateFormattingFilesafe.format(new Date(t)); }/*from w w w . jav a 2 s . c o m*/ }