ENTITY week_of_year_and_day_date

(* SCHEMA step_merged_ap_schema; *)
-- IN AP203e2/AP224/AP238 STEP-NC/AP242
ENTITY week_of_year_and_day_date
   SUBTYPE OF (date);
      week_component : week_in_year_number;
      day_component : OPTIONAL day_in_week_number;
   WHERE
      WR1:
         NOT leap_year(SELF\date.year_component) OR (1 <= day_component + 7 * (week_component - 1)) AND (day_component + 7 * (week_component - 1) <= 366);
      wr2:
         leap_year(SELF\date.year_component) OR (1 <= day_component + 7 * (week_component - 1)) AND (day_component + 7 * (week_component - 1) <= 365);
END_ENTITY;

Explicit Attributes

Entity week_of_year_and_day_date has the following local and inherited explicit attributes:
AttributeTypeDefined By
 year_componentyear_number (INTEGER)date
 week_componentweek_in_year_number (INTEGER)week_of_year_and_day_date
 day_componentday_in_week_number (INTEGER)week_of_year_and_day_date

Derived Attributes

    No derived attributes

Inverse Attributes

    No Inverse Attributes

Supertypes

Entity week_of_year_and_day_date inherits from the following supertypes:
  date

Subtypes

    No subtypes

Referenced By

Entity week_of_year_and_day_date and its supertypes are referenced by the following definitions:
DefinitionTypeReferenced Entity
 approval_item SELECT date
 date ENTITY week_of_year_and_day_date
 date_and_time ENTITY date
 date_assignment ENTITY date
 date_time_select SELECT date
 dependent_instantiable_date RULE date
 week_of_year_and_day_date ENTITY date


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2020-07-28T17:02:19-04:00