Class: TimeExtent

TimeExtent

new TimeExtent(options)

base/TimeExtent.js, line 2

具有明确开始和结束日期的一段时间。

Name Type Description
options Object

构造参数

Name Type Description
start Date 可选

开始时间,参考https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date。

end Date 可选

结束时间,参考https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date。

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
json Object

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对象