com.timeindexing.time
Class DateParser

java.lang.Object
  extended bycom.timeindexing.time.DateParser

public class DateParser
extends java.lang.Object

A Date parserthat parses times and dates reltive to GMT. The date parsing required here is not interested in TimeZones, so this forces a time zone speicfication.


Constructor Summary
protected DateParser(java.lang.String pattern)
          Construct a DateFormatter.
 
Method Summary
 java.util.Date parse(java.lang.String input)
          Parse a Date from a string using this format.
 java.util.Date parse(java.lang.String input, java.text.ParsePosition pos)
          Parse a Date from a string using this format from the specified postition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DateParser

protected DateParser(java.lang.String pattern)
Construct a DateFormatter.

Method Detail

parse

public java.util.Date parse(java.lang.String input,
                            java.text.ParsePosition pos)
Parse a Date from a string using this format from the specified postition.


parse

public java.util.Date parse(java.lang.String input)
Parse a Date from a string using this format.