public class TimeExtent
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Method and Description |
---|---|
static TimeExtent |
create(com.google.gwt.core.client.JsDate startTime,
com.google.gwt.core.client.JsDate endTime)
Creates a new TimeExtent object with the specifed start and end time.
|
com.google.gwt.core.client.JsDate |
getEndTime()
Get the end time for the specified time extent.
|
com.google.gwt.core.client.JsDate |
getStartTime()
Get the start time for the specified time extent.
|
TimeExtent |
intersection(TimeExtent extent)
Returns a new time extent indicating the intersection between "this" and the
argument time extent.
|
TimeExtent |
offset(int offsetValue,
java.lang.String offsetUnits)
Returns a new time extent with the given offset from "this' time extent.
|
void |
setEndTime(com.google.gwt.core.client.JsDate endTime)
Set the end time for this time extent
|
void |
setStartTime(com.google.gwt.core.client.JsDate startTime)
Set the start time for this time extent
|
public static TimeExtent create(com.google.gwt.core.client.JsDate startTime, com.google.gwt.core.client.JsDate endTime)
startTime
- - The start time for the specified time extent.endTime
- - The end time for the specified time extent.public final com.google.gwt.core.client.JsDate getStartTime()
public final void setStartTime(com.google.gwt.core.client.JsDate startTime)
startTime
- - The start time for the specified time extent.public final com.google.gwt.core.client.JsDate getEndTime()
public final void setEndTime(com.google.gwt.core.client.JsDate endTime)
endTime
- - The end time for the specified time extent.public final TimeExtent intersection(TimeExtent extent)
extent
- - The input time extent.public final TimeExtent offset(int offsetValue, java.lang.String offsetUnits)
offsetValue
- - The length of time to offset from "this" time extent.offsetUnits
- - The offset units, see the TimeInfo constants for a list of valid values.