FileDocCategorySizeDatePackage
RSSUtils.javaAPI DocAzureus 3.0.3.41771Thu Feb 09 19:43:06 GMT 2006org.gudy.azureus2.pluginsimpl.local.utils.xml.rss

RSSUtils

public class RSSUtils extends Object
author
parg

Fields Summary
Constructors Summary
Methods Summary
public static java.util.DateparseDate(java.lang.String date_str)

		try{
			// see rfc822 [EEE,] dd MMM yyyy HH:mm::ss z
			// assume 4 digit year
				
			SimpleDateFormat	format;
			
			if ( date_str.indexOf( "," ) == -1 ){
				
				format = new SimpleDateFormat("dd MMM yyyy HH:mm:ss z", Locale.US );
				
			}else{
				
				format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US );
			}
			
			return( format.parse( date_str ));
			
		}catch( ParseException e ){
			
			Debug.printStackTrace(e);
			
			return( null );
		}