Skip to content

Class: DateRange

A class defining a contiguous series of calendar dates. The date range is defined as all the dates between and including the start and the end date. The start date must fall on or before the end date.

URI: common_domain_model:DateRange

 classDiagram
    class DateRange
    click DateRange href "../DateRange/"
      DateRange <|-- BusinessDateRange
        click BusinessDateRange href "../BusinessDateRange/"

      DateRange : endDate

      DateRange : startDate

Inheritance

Slots

Name Cardinality and Range Description Inheritance
startDate 1
date
The first date of a date range direct
endDate 1
date
The last date of a date range direct

Usages

used by used in type used
RelativeDates scheduleBounds range DateRange
SchedulePeriod calculationPeriod range DateRange
SchedulePeriod fixingPeriod range DateRange

Rules

Rule Applied Preconditions Postconditions Elseconditions

In Subsets

Comments

  • Rosetta condition: DatesOrdered — startDate <= endDate

Identifier and Mapping Information

Schema Source

Mappings

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

LinkML Source

Direct

name: DateRange
description: A class defining a contiguous series of calendar dates. The date range
  is defined as all the dates between and including the start and the end date. The
  start date must fall on or before the end date.
comments:
- 'Rosetta condition: DatesOrdered  startDate <= endDate'
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
slots:
- startDate
- endDate
rules:
- description: The start date must fall on or before the end date (a date range of
    only one date is allowed).
  comments:
  - 'Rosetta comparison: startDate <= endDate'

Induced

name: DateRange
description: A class defining a contiguous series of calendar dates. The date range
  is defined as all the dates between and including the start and the end date. The
  start date must fall on or before the end date.
comments:
- 'Rosetta condition: DatesOrdered  startDate <= endDate'
in_subset:
- cdm_base_datetime
from_schema: https://w3id.org/lmodel/common-domain-model
attributes:
  startDate:
    name: startDate
    description: The first date of a date range.
    from_schema: https://w3id.org/lmodel/common-domain-model
    rank: 1000
    owner: DateRange
    domain_of:
    - DateRange
    - AveragingSchedule
    - PeriodicDates
    - FroHistory
    - AssetDeliveryPeriods
    - DividendPeriod
    - CalculationPeriodData
    range: date
    required: true
  endDate:
    name: endDate
    description: The last date of a date range.
    from_schema: https://w3id.org/lmodel/common-domain-model
    rank: 1000
    owner: DateRange
    domain_of:
    - DateRange
    - AveragingSchedule
    - PeriodicDates
    - CustodianEvent
    - FroHistory
    - AssetDeliveryPeriods
    - DividendPeriod
    - CalculationPeriodData
    range: date
    required: true
rules:
- description: The start date must fall on or before the end date (a date range of
    only one date is allowed).
  comments:
  - 'Rosetta comparison: startDate <= endDate'