Description
Class added v2.0.
Represents the period in time within which the data was collected.
Samples
Search for
samples that use this class.
Class hierarchy
esri.TimeExtent
Constructor
| esri.TimeExtent(startTime, endTime) |
Creates a new TimeExtent object with the specifed start and end time. If the startTime is null or undefined the start time is negative infinity. If the endTime is null or undefined the endTime is positive infinity. To represent an instant in time set the startTime and endTime to the same time value. |
Properties
| endTime |
Date
|
The end time for the specified time extent. |
| startTime |
Date
|
The start time for the specified time extent. |
Methods
Constructor Detail
esri.TimeExtent(startTime, endTime)
Creates a new TimeExtent object with the specifed start and end time. If the startTime is null or undefined the start time is negative infinity. If the endTime is null or undefined the endTime is positive infinity. To represent an instant in time set the startTime and endTime to the same time value.
Parameters:
|
<Date>
startTime |
Required |
The start time for the specified time extent.
|
|
<Date>
endTime |
Required |
The end time for the specified time extent.
|
Code snippets:
var timeExtent = new esri.TimeExtent(new Date("10/16/2000"),new Date("10/18/2000"));
Properties Detail
The end time for the specified time extent.
Code snippets:
timeExtent.endTime = new Date("12/31/1992 UTC");
The start time for the specified time extent.
Code snippets:
timeExtent.startTime = new Date("1/1/1989 UTC");
Methods Detail
Returns a new time extent indicating the intersection between "this" and the argument time extent.
Input Parameters:
|
<Number> timeExtent |
Required |
The input time extent. |
offset(offsetValue, offsetUnits)
Returns a new time extent with the given offset from "this' time extent.
Input Parameters:
|
<Number> offsetValue |
Required |
The length of time to offset from "this" time extent. |
|
<String> offsetUnits |
Required |
The offset units, see the TimeInfo constants for a list of valid values. |