Class: TimeRounding
Specifies how a calculated time should be rounded, including both the direction of rounding and the unit to which the time is rounded. Rounding is applied after all offsets have been calculated.
URI: common_domain_model:TimeRounding
classDiagram
class TimeRounding
click TimeRounding href "../TimeRounding/"
TimeRounding : roundingDirection
TimeRounding --> "1" RoundingDirectionEnum : roundingDirection
click RoundingDirectionEnum href "../RoundingDirectionEnum/"
TimeRounding : roundToUnit
TimeRounding --> "0..1" TimeUnitEnum : roundToUnit
click TimeUnitEnum href "../TimeUnitEnum/"
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| roundingDirection | 1 RoundingDirectionEnum |
The direction in which rounding is performed (e | direct |
| roundToUnit | 0..1 TimeUnitEnum |
The time unit to which the value should be rounded (e | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| RelativeTime | rounding | range | TimeRounding |
| RelativeTimeOffset | rounding | range | TimeRounding |
In Subsets
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/common-domain-model
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | common_domain_model:TimeRounding |
| native | common_domain_model:TimeRounding |
LinkML Source
Direct
name: TimeRounding
description: Specifies how a calculated time should be rounded, including both the
direction of rounding and the unit to which the time is rounded. Rounding is applied
after all offsets have been calculated.
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
slots:
- roundingDirection
- roundToUnit
Induced
name: TimeRounding
description: Specifies how a calculated time should be rounded, including both the
direction of rounding and the unit to which the time is rounded. Rounding is applied
after all offsets have been calculated.
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
roundingDirection:
name: roundingDirection
description: The direction in which rounding is performed (e.g., up, down, or
to the nearest value).
from_schema: https://w3id.org/lmodel/common-domain-model
rank: 1000
owner: TimeRounding
domain_of:
- TimeRounding
- Rounding
range: RoundingDirectionEnum
required: true
roundToUnit:
name: roundToUnit
description: The time unit to which the value should be rounded (e.g., minute,
hour, day).
from_schema: https://w3id.org/lmodel/common-domain-model
rank: 1000
owner: TimeRounding
domain_of:
- TimeRounding
range: TimeUnitEnum