Here you can find the source of printDate(long millis)
public static String printDate(long millis)
//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 }