10.3. Temporality
In the database community, various proposals and products have been developed to address temporal data. For example, SQL/Temporal was considered as a temporal extension to SQL (on hold since late 2001, but might be revived) and many DBMS products have incorporated specific support for temporal features. Three basic temporal data types may be distinguished (Snodgrass 2000):
Instant (point in time, e.g., 2008 June 3, 2:50 p.m. UTC)
Interval (duration of time, e.g., 3 weeks)
Period (anchored duration of time, e.g., 2008 June 3 ... 2006 June 23 MST)
For each of these data types, various temporal operators may be defined. For example, date subtraction (–) applied to an ordered pair of dates (e.g. today and your birthdate) results ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access