Date, Time and Duration Datatype Summary

This section provides a summary of all date, time and duration related built-in datatypes: dateTime, dateTimeStamp, date, time, gYear, gMonth, gDay, gYearMonth, gMonthDay, duration, yearMonthduration and dayTimeduration.

XSD 1.1 supports 12 date, time and duration related built-in datatypes: "dateTime", "dateTimeStamp", "date", "time", "gYear", "gMonth", "gDay", "gYearMonth", "gMonthDay", "duration", "yearMonthduration" and "dayTimeduration". They are defined using data models similar to "ISO 8601 - Data elements and interchange formats" standard. Here is a summary of all of them.

1. "dateTime" datatype contain 7 properties: "year", "month", "day", "hour", "minute", "second" and "timezoneOffset" with their own lexical representation rules:

2. "dateTime" and related datatype lexical representation rules can be expressed using the "dateTime" 7-property model:

3. "duration" datatype contain 7 different properties: "duSign", "duYear", "duMonth", "duDay", "duHour", "duMinute" and "duSecond" with their own lexical representation rules:

4. "duration" and related datatype lexical representation rules can be expressed using the "duration" 7-property model:

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 APIs

 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

 Archived Tutorials

 References

 Full Version in PDF/EPUB