com.sun.labs.minion.util
Class CDateParser

java.lang.Object
  extended by com.sun.labs.minion.util.CDateParser

public class CDateParser
extends java.lang.Object


Constructor Summary
CDateParser()
           
 
Method Summary
 java.util.Date parse(java.lang.String date)
          This date parser understands many US and locale based formats.
 java.util.Date parse(java.lang.String date, boolean _32_bits)
          This date parser understands many US and locale based formats.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CDateParser

public CDateParser()
Method Detail

parse

public java.util.Date parse(java.lang.String date,
                            boolean _32_bits)
                     throws java.text.ParseException
This date parser understands many US and locale based formats. Typical RD dates look like: Fri, 17 Jan 1997 16:42:49 GMT (this format derives from http timestamps)

Parameters:
_32_bits - if false allows 64 bit (milliseconds) dates if true, only allows 32 bit dates (seconds) due to search engine limit.
Throws:
java.text.ParseException

parse

public java.util.Date parse(java.lang.String date)
                     throws java.text.ParseException
This date parser understands many US and locale based formats. Typical RD dates look like: Fri, 17 Jan 1997 16:42:49 GMT (this format derives from http timestamps) Although Java allows 64 bit date (milliseconds) the default here only allows 32 bit dates (seconds) due to search engine limit.

Throws:
java.text.ParseException