-
Notifications
You must be signed in to change notification settings - Fork 0
Description
This is a nasty, quick hack, and should get a proper type.
Either the simple NewType treatment that we give some URLs.
Or, if we need to do pass judgements, a ZGWDuration (ZGWTermijn?) type that can do proper date/date time arithmetic according to the ZGW interpretation of ISO 86011, such that these expressions
d: datetime.date
dt: datetime.datetime
p: ZGWDuration
d + p
dt + preduce to the well specified reasonable2 values.
Originally posted by @CharString in #284 (comment)
Footnotes
-
ISO 8601 is open to interpretation. e.g. what's the length of
P1YorP1M? So in principaldatetime.timedeltais not a good representation (unless it follows from the interpretation, of course) ↩ -
Ultimately these timespans will be used by automated systems to judge whether something is "on time" or "due" according to the law. IMHO, the interpretation should be such that it won't flag any "false positives" that may result in fines etc which will get appealed. No Common Ground software should needlessly burden civil service and courts. ↩