Share via


xt:WorkingHours Element

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Contains an array of working hours in a given time zone.

Syntax

<xt:WorkingHours xmlns:xt=" http://schemas.microsoft.com/exchange/services/2006/types" >
  <xt:TimeZone>...<xt:TimeZone>
  <xt:WorkingPeriodArray>...</xt:WorkingPeriodArray>
</xt:WorkingHours>

Attributes

Attribute Data Type Description

xmlns

url

Namespace ("http://schemas.microsoft.com/exchange/services/2006/types") in which this element is defined.

Parent Element

Element Description

cd:calendarData

Contains a user's calendar data.

Child Elements

Element Occurrence Description

xt:TimeZone Element

1

Time zoned time.

xt:WorkingPeriodArray Element

1

An array of working period

Remarks

This element is defined in the Microsoft Exchange Service schema and consists of a sequence of xt:TimeZone Element and xt:WorkingPeriodArray Element.

Examples

XML Example of the WorkingHours Element

<?xml version="1.0" encoding="utf-8" ?>
<calendarData xmlns="http://schemas.microsoft.com/2006/09/sip/calendarData" mailboxID="bob@contoso.com">
  <xt:WorkingHours xmlns:xt="http://schemas.microsoft.com/exchange/services/2006/types">
    <xt:TimeZone>
      <xt:Bias>480</xt:Bias>
      <xt:StandardTime>
        <xt:Bias>0</xt:Bias>
        <xt:Time>02:00:00</xt:Time>
        <xt:DayOrder>1</xt:DayOrder>
        <xt:Month>11</xt:Month>
        <xt:DayOfWeek>Sunday</xt:DayOfWeek>
      </xt:StandardTime>
      <xt:DaylightTime>
        <xt:Bias>60</xt:Bias>
        <xt:Time>02:00:00</xt:Time>
        <xt:DayOrder>2</xt:DayOrder>
        <xt:Month>3</xt:Month>
        <xt:DayOfWeek>Sunday</xt:DayOfWeek>
      </xt:DaylightTime>
    </xt:TimeZone>
    <xt:WorkingPeriodArray>
      <xt:WorkingPeriod>
        <xt:DayOfWeek>Monday Tuesday Wednesday Thursday Friday</xt:DayOfWeek>
        <xt:StartTimeInMinutes>600</xt:StartTimeInMinutes>
        <xt:EndTimeInMinutes>1170</xt:EndTimeInMinutes>
      </xt:WorkingPeriod>
    </xt:WorkingPeriodArray>
  </xt:WorkingHours> 
</calendarData>