Talk:WKDYWK
SNPWG 8 agreed
raphael 18:43, 10 June 2009 (CEST) : Just a minor note about weekends. Some places have "weekends" different from Saturday+Sunday, and some places have a six-day or 5.5 day work week, or complications like a a 6-day work week with a holiday on the 2nd Saturday of each month, though I am not sure whether they do it for port operations. I suggest deletion of the parenthetical notes about weekends in the "definitions" section.
Revision proposed to SNPWG11
raphael 23:50, 24 August 2009 (UTC): It is proposed to make this a complex attribute with two sub-sttributes, DYOFWK and DYWKRN. The reason is to permit more compact representations of working days and hours, assuming that S-100 forbids list values (see discussion at Talk:DYWKRN). Given this assumption, as WKDYWK is currently defined it would be necessary to code the working hours separately for every working day. This works, but may be cumbersome and susceptible to human error during maintenance because it would be necessary to code similar data repeatedly (for example, code the same working hours five times).
The specification is intended to allow coding of individual days, ranges of days, or some combination of the two, i.e., it would be possible to code the work week "Monday-Friday and Saturday" as:
DYOFWK = 6 (Saturday)
DYWKRN (DYOFWK = 1, DYOFWK = 5) (Monday - Friday)
The proposed definition follows:
Attribute: Working days of week
Alpha code: WKDYWK
Attribute type: Complex
Camel case: workingDaysOfWeek
Data Type: Complex
Definition: The working days of the week.
Sub-Attributes:
Name Alpha code Camel case Cardinality sequential
Day of week DYOFWK dayOfWeek 0..7 True
Day of week range DYWKRN dayOfWeekRange 0..* True
Constraints: Duplicates or overlaps are not permitted
Remarks: The total number of “Day of week” and “Day of week range” values must be appropriate for the number of entries in the corresponding Working hours of Day attribute, if present. Note that a day may have more than one working period.