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/"
| 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
Section titled “Usages”| used by | used in | type | used |
|---|---|---|---|
| RelativeTime | rounding | range | TimeRounding |
| RelativeTimeOffset | rounding | range | TimeRounding |
Identifier and Mapping Information
Section titled “Identifier and Mapping Information”Schema Source
Section titled “Schema Source”- from schema: https://w3id.org/lmodel/common-domain-model
Mappings
Section titled “Mappings”| Mapping Type | Mapped Value |
|---|---|
| self | common_domain_model:TimeRounding |
| native | common_domain_model:TimeRounding |
LinkML Source
Section titled “LinkML Source”Direct
Section titled “Direct”name: TimeRoundingdescription: 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.from_schema: https://w3id.org/lmodel/common-domain-modelattributes: 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/cdm_base_datetime rank: 1000 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/cdm_base_datetime rank: 1000 domain_of: - TimeRounding range: TimeUnitEnumInduced
Section titled “Induced”name: TimeRoundingdescription: 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.from_schema: https://w3id.org/lmodel/common-domain-modelattributes: 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/cdm_base_datetime 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/cdm_base_datetime rank: 1000 owner: TimeRounding domain_of: - TimeRounding range: TimeUnitEnum