The Time Span object represents different time period durations. If a timespan is fractional, i.e. crosses one period, e.g. a week and 3 days, more than one may be populated since each member is of integral type. In that case type_id if present should be set to Other.
Attributes
Section titled “Attributes”duration
- Type:
long_t - Requirement: recommended
The duration of the time span in milliseconds.
duration_days
- Type:
integer_t - Requirement: recommended
The duration of the time span in days.
duration_hours
- Type:
integer_t - Requirement: recommended
The duration of the time span in hours.
duration_mins
- Type:
integer_t - Requirement: recommended
The duration of the time span in minutes.
duration_months
- Type:
integer_t - Requirement: recommended
The duration of the time span in months.
duration_secs
- Type:
integer_t - Requirement: recommended
The duration of the time span in seconds.
duration_weeks
- Type:
integer_t - Requirement: recommended
The duration of the time span in weeks.
duration_years
- Type:
integer_t - Requirement: recommended
The duration of the time span in years.
type_id
- Type:
integer_t - Requirement: recommended
- Values:
0-Unknown: The type is unknown.1-Milliseconds2-Seconds3-Minutes4-Hours5-Days6-Weeks7-Months8-Years99-Other: The type is not mapped. See thetypeattribute, which contains a data source specific value.
The normalized identifier for the time span duration type.
type
- Type:
string_t - Requirement: optional
The type of time span duration the object represents.
Constraints
Section titled “Constraints”At least one of: duration, duration_days, duration_hours, duration_mins, duration_months, duration_secs, duration_weeks, duration_years