Definition Type: AttributeGroup
Name: DateTimeSpanGroup
Containing Schema: OTA_CommonTypes.xsd
Documentation:
The attributes of the OTA DateTimeSpan data type are based on the W3C base data types of timeInstant and timeDuration. The lexical representation for timeDuration is the [ISO 8601] extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision. As an example, 7 months, 2 days, 2hours and 30 minutes would be expressed as P0Y7M2DT2H30M0S. Truncated representations are allowed provided they conform to ISO 8601 format. Time periods, i.e. specific durations of time, can be represented by supplying two items of information: a start instant and a duration or a start instant and an end instant or an end instant and a duration. The OTA standards use the XML mapping that provides for two elements to represent the specific period of time; a startInstant and a duration.
Collapse XSD Schema Diagram:
Drilldown into End in schema ota_commontypes_xsd1 Drilldown into Duration in schema ota_commontypes_xsd1 Drilldown into Start in schema ota_commontypes_xsd1XSD Diagram of DateTimeSpanGroup in schema ota_commontypes_xsd1 (Open Travel (OTA))
Collapse XSD Schema Code:
<xs:attributeGroup name="DateTimeSpanGroup">
    <xs:annotation>
        <xs:documentation xml:lang="en">The attributes of the  OTA DateTimeSpan data type are based on the W3C base data types of timeInstant and timeDuration. The lexical representation for timeDuration is the [ISO 8601] extended format PnYn MnDTnH nMnS, where nY represents the number of years, nM the number of months, nD the number of days, 'T' is the date/time separator, nH the number of hours, nM the number of minutes and nS the number of seconds. The number of seconds can include decimal digits to arbitrary precision. As an example, 7 months, 2 days, 2hours and 30 minutes would be expressed as P0Y7M2DT2H30M0S. Truncated representations are allowed provided they conform to ISO 8601 format. Time periods, i.e. specific durations of time, can be represented by supplying two items of information: a start instant and a duration or a start instant and an end instant or an end instant and a duration. The OTA standards use the XML mapping that provides for two elements to represent the specific period of time; a startInstant and a duration.</xs:documentation>
    </xs:annotation>
    <xs:attribute name="Start" type="DateOrTimeOrDateTimeType" use="optional">
        <xs:annotation>
            <xs:documentation xml:lang="en">The starting value of the time span. </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute name="Duration" type="DurationType" use="optional">
        <xs:annotation>
            <xs:documentation xml:lang="en">The duration datatype represents a combination of year, month, day and time values representing a single duration of time, encoded as a single string. </xs:documentation>
        </xs:annotation>
    </xs:attribute>
    <xs:attribute name="End" type="DateOrTimeOrDateTimeType" use="optional">
        <xs:annotation>
            <xs:documentation xml:lang="en">The ending value of the time span. </xs:documentation>
        </xs:annotation>
    </xs:attribute>
</xs:attributeGroup>
Collapse Child Attributes:
Name Type Default Value Use
Start Start Optional
Duration Duration Optional
End End Optional