//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);
/**
* Parses an RFC822 formatted date string.
*
* @param date
* @return the parsed Date object
* @throws ParseException
*/
public static Date parseRFC822Date(final String date) throws ParseException {
return formatter.parse(date);
}
}