new TimeInterval(options)
base/TimeInterval.js, line 3
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
构造参数
|
Members
-
unitTemporalUnit
-
时间数据的单位。例如,年、月、日、时等。
-
valueNumber
-
时间数据值。
Methods
-
TimeInterval.fromJSON(json){TimeInterval}
base/TimeInterval.js, line 29 -
通过json构造TimeInterval对象
Name Type Description jsonObject json对象
Returns:
Type Description TimeInterval TimeInterval实例 -
clone(){TimeInterval}
base/TimeInterval.js, line 49 -
克隆TimeInterval对象
Returns:
Type Description TimeInterval 克隆后的TimeInterval实例 -
toJSON(){Object}
base/TimeInterval.js, line 38 -
导出json对象
Returns:
Type Description Object json对象