public class DateRange extends Object
Constructor and Description |
---|
DateRange(String pDateInterval)
Constructor.
|
DateRange(String pDateInterval,
Locale pLocale)
Constructor.
|
DateRange(String pDateInterval,
String pPattern)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Date |
getEndTime()
Returns the endtime of the daterange
|
static String |
getPattern(Locale pLocale) |
Date |
getStartTime()
Returns the starttime of the daterange
|
public DateRange(String pDateInterval) throws IllegalArgumentException
pDateInterval
- the dateinterval to useIllegalArgumentException
- if the date could not be parsedpublic DateRange(String pDateInterval, Locale pLocale) throws IllegalArgumentException
pDateInterval
- the date interval to usepLocale
- the locale ot useIllegalArgumentException
- if the locale is null or the date could not be parsedpublic DateRange(String pDateInterval, String pPattern) throws IllegalArgumentException
pDateInterval
- the dateinterval to usepPattern
- the pattern to use when parsing the intervalIllegalArgumentException
- if either the pattern is wrong or the date could not be parsed© 1998- 2021 Escenic AS