The SEDRIS Data Representation Model
APPENDIX B - Constraints
Legal Time Ranges

Definition

  1. For an <Absolute Time> instance, (when hour, minutes, and/or seconds exist)

    1. hour shall be between 0 and 23 inclusive.

    2. minutes shall be between 0 and 59 inclusive.

    3. seconds shall be between 0 and 60; that is, 0.0 <= seconds < 60.0.

  2. For <Absolute Time Interval> instances and <Relative Time> instances,

    1. delta_hours shall be between 0 and 23 inclusive.

    2. delta_minutes shall be between 0 and 59 inclusive.

    3. delta_seconds shall be between 0 and 60, that is, 0 <= seconds < 60.0.

  3. For a <Relative Time Interval> instance,

    1. delta_start_hours shall be between 0 and 23 inclusive, and delta_stop_hours shall be between 0 and 23 inclusive.

    2. delta_start_minutes and delta_stop_minutes shall each be between 0 and 59 inclusive.

    3. delta_start_seconds and delta_stop_seconds shall each be between 0 and 60; that is, 0 <= seconds < 60.0.

Rationale

Any values for hour greater than 23 should be expressed in days.

Any values for minutes greater than 59 should be expressed in hours.

Any values for seconds greater than or equal to 60 should be expressed in minutes.

Example

  1. To specify a date of 31 December 1999 with an <Absolute Time> instance,

    time_value.configuration SE_TIMECFG_DATE_YMD
    time_value.value. ymd.year 1999
    time_value.value. ymd.month SE_MONTH_DECEMBER
    time_value.value. ymd.day 31

FAQs

No FAQs supplied.


Prev: Inheritance Rule For Location. Next: Linear Geometry Structure. Up:Index.