Skip to content

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
used by used in type used
RelativeTime rounding range TimeRounding
RelativeTimeOffset rounding range TimeRounding
Mapping Type Mapped Value
self common_domain_model:TimeRounding
native common_domain_model:TimeRounding
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.
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/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: TimeUnitEnum
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.
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/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