public class TemporalFilter extends Object
Constructor and Description |
---|
TemporalFilter(Date startDate,
Date endDate)
Absolute time search
|
TemporalFilter(long offset)
Relative time search.
|
TemporalFilter(String startDate,
String endDate)
Absolute time search, parses incoming strings to dates.
|
Modifier and Type | Method and Description |
---|---|
Date |
getEndDate() |
Date |
getStartDate() |
static Date |
parseDate(String date)
Parses the date/time string and returns a date object.
|
void |
setEndDate(Date endDate) |
void |
setStartDate(Date startDate) |
String |
toString() |
public TemporalFilter(Date startDate, Date endDate)
dateStart
- endDate
- public TemporalFilter(String startDate, String endDate)
dtStartStr
- dtEndStr
- public TemporalFilter(long offset)
offset
- time range (in milliseconds) to search from current point in time. Positive
offset goes backwards in time. Example: offset of 30000 will perform a search where the
bounds are between now and 30 seconds prior to now.public static Date parseDate(String date)
date
- public Date getStartDate()
public void setStartDate(Date startDate)
public Date getEndDate()
public void setEndDate(Date endDate)
This work is licensed under a Creative Commons Attribution 4.0 International License.