Class: RelativeTime
Defines a time value calculated relative to a reference time. The final value is derived by applying any offset and rounding rules inherited from RelativeTimeOffset to the reference time.
URI: common_domain_model:RelativeTime
classDiagram
class RelativeTime
click RelativeTime href "../RelativeTime/"
RelativeTimeOffset <|-- RelativeTime
click RelativeTimeOffset href "../RelativeTimeOffset/"
RelativeTime : offsetMultiplier
RelativeTime : offsetTimeUnit
RelativeTime --> "0..1" TimeUnitEnum : offsetTimeUnit
click TimeUnitEnum href "../TimeUnitEnum/"
RelativeTime : rounding
RelativeTime --> "0..1" TimeRounding : rounding
click TimeRounding href "../TimeRounding/"
RelativeTime : timeRelativeTo
RelativeTime --> "0..1" TimeZone : timeRelativeTo
click TimeZone href "../TimeZone/"
Inheritance
Section titled “Inheritance”- RelativeTimeOffset
- RelativeTime
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| timeRelativeTo | 0..1 TimeZone |
The reference time zone or base time from which the relative time is calculat… | direct |
| offsetTimeUnit | 0..1 TimeUnitEnum |
The unit of time for the offset (e | RelativeTimeOffset |
| offsetMultiplier | 0..1 Integer |
A time offset multiplier, e | RelativeTimeOffset |
| rounding | 0..1 TimeRounding |
Optional rules that define how the calculated time should be rounded after th… | RelativeTimeOffset |
Usages
Section titled “Usages”| used by | used in | type | used |
|---|---|---|---|
| DirectOrRelativeTime | relativeTime | range | RelativeTime |
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:RelativeTime |
| native | common_domain_model:RelativeTime |
LinkML Source
Section titled “LinkML Source”Direct
Section titled “Direct”name: RelativeTimedescription: Defines a time value calculated relative to a reference time. The final value is derived by applying any offset and rounding rules inherited from RelativeTimeOffset to the reference time.from_schema: https://w3id.org/lmodel/common-domain-modelis_a: RelativeTimeOffsetattributes: timeRelativeTo: name: timeRelativeTo annotations: rosetta_metadata: tag: rosetta_metadata value: reference description: The reference time zone or base time from which the relative time is calculated. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_datetime rank: 1000 domain_of: - RelativeTime range: TimeZoneInduced
Section titled “Induced”name: RelativeTimedescription: Defines a time value calculated relative to a reference time. The final value is derived by applying any offset and rounding rules inherited from RelativeTimeOffset to the reference time.from_schema: https://w3id.org/lmodel/common-domain-modelis_a: RelativeTimeOffsetattributes: timeRelativeTo: name: timeRelativeTo annotations: rosetta_metadata: tag: rosetta_metadata value: reference description: The reference time zone or base time from which the relative time is calculated. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_datetime rank: 1000 owner: RelativeTime domain_of: - RelativeTime range: TimeZone offsetTimeUnit: name: offsetTimeUnit description: The unit of time for the offset (e.g., seconds, minutes, hours, days). from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_datetime rank: 1000 owner: RelativeTime domain_of: - RelativeTimeOffset range: TimeUnitEnum offsetMultiplier: name: offsetMultiplier description: A time offset multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying a negative offset, e.g. -2 hours. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_datetime rank: 1000 owner: RelativeTime domain_of: - RelativeTimeOffset range: integer rounding: name: rounding description: Optional rules that define how the calculated time should be rounded after the offset has been applied. from_schema: https://w3id.org/lmodel/common-domain-model/cdm_base_datetime rank: 1000 owner: RelativeTime domain_of: - RelativeTimeOffset - FloatingRateIndexDefinition - CreditSupportObligationsCollateralTransferAgreement - CreditSupportObligationsInitialMargin - CreditSupportObligationsLegacy - CreditSupportObligationsVariationMargin - FloatingRateProcessingParameters - CollateralInterestCalculationParameters - CommodityPriceReturnTerms range: TimeRounding