Java Hour Format formatRFC822(Date date, Locale locale)

Here you can find the source of formatRFC822(Date date, Locale locale)

Description

format RFC

License

Apache License

Declaration

public static String formatRFC822(Date date, Locale locale) 

Method Source Code

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

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

public class Main {
    public static String formatRFC822(Date date, Locale locale) {
        SimpleDateFormat dateFormater = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss 'GMT'", locale);
        dateFormater.setTimeZone(TimeZone.getTimeZone("GMT"));
        return dateFormater.format(date);
    }//from ww w. j a  va 2  s. co  m
}

Related

  1. formatRawDateTime(int unixtime)
  2. formatRecyclingDate(String strDate)
  3. formatRFC1123(Date date)
  4. formatRfc3339Date(Date date)
  5. formatRFC822(Date date)
  6. formatRFC822(Date date, String timezone)
  7. formatRfc822Date(Date date)
  8. formatRuntime(long runtime)
  9. formatSDate(java.util.Date date)