DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "DateTimeRepresentationType"
Namespace:
Content:
complex, 5 attributes, 2 elements
Defined:
globally in reusable.xsd, see XML source
Includes:
definitions of 2 attributes
Used:
XML Representation Summary
<...
    blankIsMissingValue
 = 
xs:boolean
    classificationLevel
 = 
("Nominal" | "Ordinal" | "Interval" | "Ratio" | "Continuous")
    format
 = 
xs:string
    missingValue
 = 
xs:NMTOKENS
    type
 = 
("DateTime" | "Date" | "Time" | "Year" | "Month" | "Day" | "MonthDay" | "YearMonth" | "Duration" | "Timespan")
    >
   
Content: 
RecommendedDataType?, GenericOutputFormat?
</...>
Content Model Elements (2):
Known Direct Subtypes (1):
All Direct / Indirect Based Elements (3):
Known Usage Locations
Annotation
Structures the representation for any type of time format (including dates, etc.).
Type Definition Detail
Type Derivation Tree
  DateTimeRepresentationType (extension)
XML Source (w/o annotations (3); see within schema source)
<xs:complexType name="DateTimeRepresentationType">
<xs:complexContent>
<xs:extension base="RepresentationType">
<xs:attribute name="type" type="DateTypeCodeType" use="required"/>
<xs:attribute name="format" type="xs:string" use="optional"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
Attribute Detail (defined in this component only; 2/5)
format
Type:
xs:string, predefined
Use:
optional
Describes the format of the date field, in formats such as YYYY/MM or MM-DD-YY, etc. If this attribute is omitted, then the format is assumed to be the XML Schema format corresponding to the type attribute value.
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="format" type="xs:string" use="optional"/>

type
Type:
Use:
required
Value of the date type selected from a controlled vocabulary.
Attribute Value
enumeration of xs:NMTOKEN
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 (1); see within schema source)
<xs:attribute name="type" type="DateTypeCodeType" use="required"/>

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