Java Millisecond Format printDate(long millis)

Here you can find the source of printDate(long millis)

Description

print Date

License

Apache License

Declaration

public static String printDate(long millis) 

Method Source Code

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

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.*;

public class Main {
    public static final DateFormat DATE_FORMAT = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss Z");

    public static String printDate(long millis) {
        return DATE_FORMAT.format(new Date(millis));
    }//  w w w .  jav a 2s  .c  o  m
}

Related

  1. millisTrimTo(long millis, long unitInMillis)
  2. parseDate(long millisec, String format)
  3. prettyPrintMillis(long millis)
  4. prettyPrintMillis(long millis)
  5. prettyPrintTime(long millis)
  6. reverseFormattedDateWithMilliseconds()
  7. stringToTimestampInMilliseconds(String s, DateFormat formatter)
  8. strToDateMillisTimestamp(String dateStr, String formatStr)
  9. timeFormat(final long milliseconds)