//package org.chemlab.dealdroidapp;
import java.io.IOException;
import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import android.content.Context;
import android.util.Log;
/**
* @author shade
* @version $Id: Utils.java 170 2011-04-08 00:42:11Z steve.kondik $
*/
public class Utils {
private static final String RFC822_DATE_FORMAT = "EEE, d MMM yyyy HH:mm:ss Z";
private static final DateFormat formatter = new SimpleDateFormat(RFC822_DATE_FORMAT);
/**
* Formats a Date according to RFC822.
*
* @param date
* @return the Date object formatted according to RFC822
*/
public static String formatRFC822Date(final Date date) {
return formatter.format(date);
}
}