Commit 6bc6481b by Tom Laudeman

Fixing date range docs

parent 15e47f95
...@@ -42,10 +42,10 @@ change. ...@@ -42,10 +42,10 @@ change.
### How dates are stored ### How dates are stored
We have chosen to store date as a comprehensive date range. This is a single record type, setting several We have chosen to store date as a comprehensive date range record. This is a single record type, setting
attributes as appropriate, and leaving unused fields empty when necessary. Thus a single date and date range attributes as appropriate, and leaving unused fields empty when necessary. Thus a single date and date range
are both the same record type, but the single date lacks a toDate, and is_range=false. Many fields of a date are both the same record type, but the single date lacks a toDate, and is_range=false. Many fields of a date
range may be missing (and explicitly noted as such) and lack of precision can be captured as well. range may be missing (and explicitly noted as missing). Lack of precision can be captured as well.
Date sets are handled relationally by using multiple date_range records. Relational data modeling needs no Date sets are handled relationally by using multiple date_range records. Relational data modeling needs no
"date set" table. "date set" table.
...@@ -81,7 +81,6 @@ create table date_range ( ...@@ -81,7 +81,6 @@ create table date_range (
fk_id int, -- table.id of the related record fk_id int, -- table.id of the related record
primary key(id, version) primary key(id, version)
); );
``` ```
To and from dates are ISO strings. to/from _not_before/_not_after deal with lack of precision. Many dates are To and from dates are ISO strings. to/from _not_before/_not_after deal with lack of precision. Many dates are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment