Class: TimeInterval

TimeInterval

new TimeInterval(options)

base/TimeInterval.js, line 3
Name Type Description
options Object

构造参数

Name Type Description
unit TemporalUnit 可选

时间数据的单位。例如,年、月、日、时等。

value Number 可选

时间数据值。

Members

时间数据的单位。例如,年、月、日、时等。

valueNumber

时间数据值。

Methods

TimeInterval.fromJSON(json){TimeInterval}

base/TimeInterval.js, line 29

通过json构造TimeInterval对象

Name Type Description
json Object

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