Java Hour Format formatLastModified(long lastModifiedTime)

Here you can find the source of formatLastModified(long lastModifiedTime)

Description

format Last Modified

License

Open Source License

Declaration

public static String formatLastModified(long lastModifiedTime) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    static SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm");

    public static String formatLastModified(long lastModifiedTime) {
        return dateFormat.format(new Date(lastModifiedTime));
    }/*ww w . ja  v  a2s  .co m*/
}

Related

  1. formatHTTPDate(Date date)
  2. formatHTTPDate(Date pTime)
  3. formatInfo(String info)
  4. formatInternal(final Date date)
  5. formatInterval(long intervalMsec)
  6. formatMessage(String message)
  7. formatMM(Date date)
  8. formatNanosTimeUSEastern(long nanos)
  9. formatNewDate(String format)