Skip to content

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

Slots

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

used by used in type used
DirectOrRelativeTime relativeTime range RelativeTime

In Subsets

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self common_domain_model:RelativeTime
native common_domain_model:RelativeTime

LinkML Source

Direct

name: RelativeTime
description: 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.
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
is_a: RelativeTimeOffset
slots:
- timeRelativeTo

Induced

name: RelativeTime
description: 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.
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
is_a: RelativeTimeOffset
attributes:
  timeRelativeTo:
    name: timeRelativeTo
    annotations:
      metadata_reference:
        tag: metadata_reference
        value: true
    description: The reference time zone or base time from which the relative time
      is calculated.
    from_schema: https://w3id.org/lmodel/common-domain-model
    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
    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
    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
    rank: 1000
    owner: RelativeTime
    domain_of:
    - RelativeTimeOffset
    - CreditSupportObligationsLegacy
    - CreditSupportObligationsInitialMargin
    - CreditSupportObligationsCollateralTransferAgreement
    - CreditSupportObligationsVariationMargin
    - FloatingRateProcessingParameters
    - CollateralInterestCalculationParameters
    - CommodityPriceReturnTerms
    range: TimeRounding