Java Time Format formatTimestampForFilename(final long timestamp)

Here you can find the source of formatTimestampForFilename(final long timestamp)

Description

format Timestamp For Filename

License

Apache License

Declaration

public static String formatTimestampForFilename(final long timestamp) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String formatTimestampForFilename(final long timestamp) {
        return String.format("%1$tF_%1$tH-%1$tM-%1$tS", timestamp);
    }//  w  ww  .j ava  2  s  .c o  m
}

Related

  1. formatTimeSec(long time)
  2. formatTimespan(int timespan)
  3. formatTimeSpanForScheduler(long time)
  4. formatTimestamp(String timestamp)
  5. formatTimestampEnd(String timestamp)
  6. formatTimestampForLogging(final long rawNanosTimestamp)
  7. formatTimestampStart(String timestamp)
  8. formatTimeStep(Integer numberOfTimestepsPerYear, int stepNumber)
  9. formatTimeString(long millisecond)