Definition Type: ComplexType
Name: DateTimeSpanType
Containing Schema: OTA_CommonTypes.xsd
Abstract
Documentation:
Used to specify a time window range by either specifying an earliest and latest date for the start date and end date or by giving a date with a time period that can be applied before and/or after the start date.
Collapse XSD Schema Diagram:
Drilldown into EndDateWindow in schema ota_commontypes_xsd Drilldown into StartDateWindow in schema ota_commontypes_xsd Drilldown into DateWindowRange in schema ota_commontypes_xsd Drilldown into End in schema ota_commontypes_xsd1 Drilldown into Duration in schema ota_commontypes_xsd1 Drilldown into Start in schema ota_commontypes_xsd1 Drilldown into DateTimeSpanGroup in schema ota_commontypes_xsdXSD Diagram of DateTimeSpanType in schema ota_commontypes_xsd (Open Travel (OTA))
Collapse XSD Schema Code:
<xs:complexType name="DateTimeSpanType">
    <xs:annotation>
        <xs:documentation xml:lang="en">Used to specify a time window range by either specifying an earliest and latest date for the start date and end date or by giving a date with a time period that can be applied before and/or after the start date.</xs:documentation>
    </xs:annotation>
    <xs:choice>
        <xs:element name="DateWindowRange" type="TimeInstantType">
            <xs:annotation>
                <xs:documentation xml:lang="en">Specifies a time period that can be applied before and/or after the start date.</xs:documentation>
            </xs:annotation>
        </xs:element>
        <xs:sequence>
            <xs:element name="StartDateWindow" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The earliest and latest dates acceptable for the start date.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attributeGroup ref="TimeWindowGroup">
                        <xs:annotation>
                            <xs:documentation xml:lang="en">Identifies a date range.</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
            <xs:element name="EndDateWindow" minOccurs="0">
                <xs:annotation>
                    <xs:documentation xml:lang="en">The earliest and latest dates acceptable for the end date.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:attributeGroup ref="TimeWindowGroup">
                        <xs:annotation>
                            <xs:documentation xml:lang="en">Identifies a date range.</xs:documentation>
                        </xs:annotation>
                    </xs:attributeGroup>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:choice>
    <xs:attributeGroup ref="DateTimeSpanGroup">
        <xs:annotation>
            <xs:documentation xml:lang="en">Defines the date and/or time span.</xs:documentation>
        </xs:annotation>
    </xs:attributeGroup>
</xs:complexType>
Collapse Child Elements:
Name Type Min Occurs Max Occurs
DateWindowRange DateWindowRange (1) (1)
StartDateWindow StartDateWindow 0 (1)
EndDateWindow EndDateWindow 0 (1)
Collapse Child Attributes:
Name Type Default Value Use
Start Start Optional
Duration Duration Optional
End End Optional
Collapse Derivation Tree:
  • DateTimeSpanType
    • Unresolved link to closedseason
    • Unresolved link to date14
    • Unresolved link to date21
    • Unresolved link to availabledaterange
    • Unresolved link to offereddaterange1
Collapse References:
Unresolved link to availabledaterange, BlackoutDate, Unresolved link to closedseason, Unresolved link to date14, Unresolved link to date21, Unresolved link to offereddaterange1