12.2. Date, Time, and Duration Datatypes

The Schema Recommendation introduces a number of datatypes related to dates and times. They can be partitioned naturally into three groups:

  • Individual points on the “time line”: dates, with and without times

  • Lengths of intervals on the time line: durations

  • Sets of points on the time line, modulo some interval: repeating times

In this respect, the time line is much like the “number line” used to describe real numbers (and Schema’s decimal, for that matter).

Think of a continuous number line: One point is the origin; another is “one year” to the right. Think of the origin as the moment at the boundary of the year A.D. 1 and the year 1 B.C. and the other point as the moment at the boundary of A.D. 1 and

Get XML Schema Complete Reference, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.