Java Time Format getFormattedTimeFilesafe(long t)

Here you can find the source of getFormattedTimeFilesafe(long t)

Description

get Formatted Time Filesafe

License

Open Source License

Declaration

public static String getFormattedTimeFilesafe(long t) 

Method Source Code

//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*/
}

Related

  1. getFormattedTime()
  2. getFormattedTime(Date date)
  3. getFormattedTime(Date date)
  4. getFormattedTime(final Calendar calendar)
  5. getFormattedTime(final Date date)
  6. getFormattedTimeString(double s)
  7. getFormatTime(Date date)
  8. getFormatTime(String format)
  9. getFormatTimeString(Date date, String pattern)