Date/Time Seven-Property Model

This section describes the seven-property model used in XSD 1.1 to represent a moment of time in the Gregorian calendar system: year, month, day, hour, minute, second and timezoneOffset.

XSD 1.1 uses a date/time seven-property model to represent a moment of time in the Gregorian calendar system. This model is closely related to "ISO 8601 - Data elements and interchange formats" standard.

In this model, any moment of time is represented with a set of 7 values named as:

Each property in the seven-property model has its own lexical space:

With this date/time seven-property model, the moment at midnight on 2013 new year's eve at New York city can be represented as:

Property         Value   Lexical Presentation

year             2013    2013
month            1       01
day              1       01
hour             0       00
minute           0       00
second           0.0     00
timezoneOffset   -300    -05:00

With this seven-property model, "dateTime" and its related built-in datatypes can be easily described in next tutorials.

Last update: 2013.

Table of Contents

 About This Book

 Introduction to XML Schema

 XML Editor and Schema Processor - XMLPad

 Java API for XML Processing - JAXP

 JAXP - XML Schema (XSD) Validation

 Xerces2 Java Parser - Java API of XML Parsers

 Using Xerces2 Java API

 XML Schema Language - Basics

 Introduction of XSD Built-in Datatypes

 "string" and Its Derived Datatypes

 "decimal" and Its Derived Datatypes

"dateTime" and Its Related Datatypes

Date/Time Seven-Property Model

 "dateTime" Datatype Values and Representations

 "dateTimeStamp" Datatype Values and Representations

 "date" Datatype Values and Representations

 "time" Datatype Values and Representations

 "gYear", "gMonth" and "gDay" Datatypes

 "gYearMonth" and "gMonthDay" Datatypes

 "duration" Datatype Values and Representations

 "yearMonthDuration" Datatype Values and Representations

 "dayTimeDuration" Datatype Values and Representations

 Date, Time and Duration Datatype Summary

 Miscellaneous Built-in Datatypes

 Facets, Constraining Facets and Restriction Datatypes

 "simpleType" - Defining Your Own Simple Datatypes

 Complex Element Declaration

 Identity-Constraints: unique, key and keyref

 Assertion as Custom Validation Rules

 XML Schema Location and Namespace in XML Documents

 Overriding Element Types in XML Documents

 Linking Multiple Schema Documents Together

 Glossary

 References

 PDF Printing Version