public class DateRange2 extends Object
Constructor and Description |
---|
DateRange2(String pDateInterval)
Creates a date range parser for the English, great britain locale
|
DateRange2(String pDateInterval,
Locale pLocale)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Date |
getEndTime()
Returns the endtime of the daterange
|
Date |
getStartTime()
Returns the starttime of the daterange
|
int |
parse() |
public DateRange2(String pDateInterval) throws IllegalArgumentException, ParseException
pDateInterval
- the dateinterval to useIllegalArgumentException
- if the date could not be parsedParseException
public DateRange2(String pDateInterval, Locale pLocale) throws IllegalArgumentException, ParseException
pDateInterval
- the date interval to usepLocale
- the locale ot useIllegalArgumentException
- if the locale is null or the date could not be parsedParseException
public Date getStartTime()
public Date getEndTime()
public int parse() throws ParseException
ParseException
© 1998- 2018 Stibo DX