new TimeExtent(options)
base/TimeExtent.js, line 2
具有明确开始和结束日期的一段时间。
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数
|
Members
-
endDate
-
结束时间,参考https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date。
-
startDate
-
开始时间,参考https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date。
Methods
-
TimeExtent.fromJSON(json){TimeExtent}
base/TimeExtent.js, line 29 -
通过json构造TimeExtent对象
Name Type Description jsonObject json对象
Returns:
Type Description TimeExtent TimeExtent实例 -
clone(){TimeExtent}
base/TimeExtent.js, line 49 -
克隆TimeExtent对象
Returns:
Type Description TimeExtent 克隆后的TimeExtent实例 -
toJSON(){Object}
base/TimeExtent.js, line 38 -
导出json对象
Returns:
Type Description Object json对象