Take this below scenario, tweaked from an .xml given by a user:
according to MSP data structure: DayType=0 --> Exception
Except for the usual namespace , there's also this exception nested inside a standard work week.
(This suggests that for a given calendar with standard work hours, there is an exception day where Working Times do not apply and instead, the exception day's work times are to be used during a given time period)
<WeekDays>
<WeekDay>
<DayType>5</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>6</DayType>
<DayWorking>1</DayWorking>
<WorkingTimes>
<WorkingTime>
<FromTime>08:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>17:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
<WeekDay>
<DayType>7</DayType>
<DayWorking>0</DayWorking>
</WeekDay>
<WeekDay>
<DayType>0</DayType>
<DayWorking>1</DayWorking>
<TimePeriod>
<FromDate>2018-10-12T00:00:00</FromDate>
<ToDate>2018-10-12T23:59:00</ToDate>
</TimePeriod>
<WorkingTimes>
<WorkingTime>
<FromTime>09:00:00</FromTime>
<ToTime>12:00:00</ToTime>
</WorkingTime>
<WorkingTime>
<FromTime>13:00:00</FromTime>
<ToTime>18:00:00</ToTime>
</WorkingTime>
</WorkingTimes>
</WeekDay>
</WeekDays>
Take this below scenario, tweaked from an .xml given by a user:
according to MSP data structure: DayType=0 --> Exception
Except for the usual namespace , there's also this exception nested inside a standard work week.
(This suggests that for a given calendar with standard work hours, there is an exception day where Working Times do not apply and instead, the exception day's work times are to be used during a given time period)