DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
simpleType "DateTypeCodeType"
Namespace:
Defined:
globally in reusable.xsd, see XML source
Used:
Simple Content Model
enumeration of xs:NMTOKEN
Simple Content Restrictions:
Enumeration:
"DateTime"
 - 
Contains both the date and time as dateTtime. A time datatype corresponding to W3C XML Schema's xs:dateTime datatype.
"Date"
 - 
Contains the full date from the Gregorian calender YYYY-MM-DD unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:date datatype.
"Time"
 - 
Contains the full time on a 24-hour clock system unless alternative format is provided. hh:mm:ss. Precision can be dropped resulting in hh:mm or hh. A time zone can be added timeZ using the standard time zone designation +-hh:mm or +-hh. A time datatype corresponding to W3C XML Schema's xs:time datatype.
"Year"
 - 
Contains the 4 digit year YYYY. A time datatype corresponding to W3C XML Schema's xs:gYear datatype.
"Month"
 - 
Contains the 2 digit month MM. A time datatype corresponding to W3C XML Schema's xs:gMonth datatype.
"Day"
 - 
Contains the 2 digit day DD. A time datatype corresponding to W3C XML Schema's xs:gDay datatype.
"MonthDay"
 - 
Contains the 2 digit month followed by the 2 digit day as MM-DD unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:gMonthDay datatype.
"YearMonth"
 - 
Contains the 4 digit year followed by the 2 digit month as YYYY-MM unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:gYearMonth datatype.
"Duration"
 - 
Provides a duration of time represetned by one of the following formats (specific format must be declared) PnnYnnMnnDTnnHnnMnnS where n is replaced with the number of unit types for example "P3Y6M4DT12H30M0S" defines "a period of three years, six months, four days, twelve hours, thirty minutes, and zero seconds". Elements may be omitted if their value is zero. T is used to separate date and time elements so that P3M is 3 months and PT3M is three minutes. Alternative format PdateTtime "P0003-06-04T12:30:00". A time datatype corresponding to W3C XML Schema's xs:duration datatype.
"Timespan"
 - 
This is not allowed as a date type when describing an NCube dimension as it represents two dimensions. Complex structure containing start/end, start/duration, or duration/end. Start and end can follow any of the designated datetime structures and should be declared in format. star>/end example: "2007-03-01T13:00:00/2008-05-11T15:30:00" start/duration example: "2007-03-01T13:00:00/P1Y2M10DT2H30M" duration/end example "P1Y2M10DT2H30M/2008-05-11T15:30:00" For start/end expressions, if any elment are missing from the end valude, they are assumed to be the same as for the start value including the time zone if used. For example a 2 hour meeting "2007-12-14T13:30/15:30". A complex datatype specifying a start date (xs:dateTime) and a duration (xs:duration). Note that this is not allowed as thre text type representing a dimension.

All Direct / Indirect Based Attributes (1):
Known Usage Locations
Annotation
Provides an enumerated list of data types.(ISO 8601 usage)
Type Definition Detail
Type Derivation Tree
xs:NMTOKEN
  DateTypeCodeType (restriction)
Derivation:
restriction of xs:NMTOKEN
Facets:
enumeration:
"DateTime"
 - 
Contains both the date and time as dateTtime. A time datatype corresponding to W3C XML Schema's xs:dateTime datatype.
"Date"
 - 
Contains the full date from the Gregorian calender YYYY-MM-DD unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:date datatype.
"Time"
 - 
Contains the full time on a 24-hour clock system unless alternative format is provided. hh:mm:ss. Precision can be dropped resulting in hh:mm or hh. A time zone can be added timeZ using the standard time zone designation +-hh:mm or +-hh. A time datatype corresponding to W3C XML Schema's xs:time datatype.
"Year"
 - 
Contains the 4 digit year YYYY. A time datatype corresponding to W3C XML Schema's xs:gYear datatype.
"Month"
 - 
Contains the 2 digit month MM. A time datatype corresponding to W3C XML Schema's xs:gMonth datatype.
"Day"
 - 
Contains the 2 digit day DD. A time datatype corresponding to W3C XML Schema's xs:gDay datatype.
"MonthDay"
 - 
Contains the 2 digit month followed by the 2 digit day as MM-DD unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:gMonthDay datatype.
"YearMonth"
 - 
Contains the 4 digit year followed by the 2 digit month as YYYY-MM unless an alternative format is provided. A time datatype corresponding to W3C XML Schema's xs:gYearMonth datatype.
"Duration"
 - 
Provides a duration of time represetned by one of the following formats (specific format must be declared) PnnYnnMnnDTnnHnnMnnS where n is replaced with the number of unit types for example "P3Y6M4DT12H30M0S" defines "a period of three years, six months, four days, twelve hours, thirty minutes, and zero seconds". Elements may be omitted if their value is zero. T is used to separate date and time elements so that P3M is 3 months and PT3M is three minutes. Alternative format PdateTtime "P0003-06-04T12:30:00". A time datatype corresponding to W3C XML Schema's xs:duration datatype.
"Timespan"
 - 
This is not allowed as a date type when describing an NCube dimension as it represents two dimensions. Complex structure containing start/end, start/duration, or duration/end. Start and end can follow any of the designated datetime structures and should be declared in format. star>/end example: "2007-03-01T13:00:00/2008-05-11T15:30:00" start/duration example: "2007-03-01T13:00:00/P1Y2M10DT2H30M" duration/end example "P1Y2M10DT2H30M/2008-05-11T15:30:00" For start/end expressions, if any elment are missing from the end valude, they are assumed to be the same as for the start value including the time zone if used. For example a 2 hour meeting "2007-12-14T13:30/15:30". A complex datatype specifying a start date (xs:dateTime) and a duration (xs:duration). Note that this is not allowed as thre text type representing a dimension.
XML Source (w/o annotations (11); see within schema source)
<xs:simpleType name="DateTypeCodeType">
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="DateTime"/>
<xs:enumeration value="Date"/>
<xs:enumeration value="Time"/>
<xs:enumeration value="Year"/>
<xs:enumeration value="Month"/>
<xs:enumeration value="Day"/>
<xs:enumeration value="MonthDay"/>
<xs:enumeration value="YearMonth"/>
<xs:enumeration value="Duration"/>
<xs:enumeration value="Timespan"/>
</xs:restriction>
</xs:simpleType>

XML schema documentation generated with DocFlex/XML SDK 1.7.2 using DocFlex/XML XSDDoc 2.1.0 template set