Difference between revisions of "DTr1 TS.DATE"
(Automated ADBot page content) |
|||
(15 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
=TS.DATE Time Stamp - Flavor Date= | =TS.DATE Time Stamp - Flavor Date= | ||
− | Datatype Release 1: TS.DATE | + | {| class="artdecorwiki" |
+ | ! style="text-align:left;" | Datatype Release 1 !! Realm | ||
+ | |- | ||
+ | | style="height:30px; vertical-align:middle;" | '''TS.DATE''' || style="vertical-align:middle;" | [[File:Universalrealm.png|20px|link=]] UV | ||
+ | |} | ||
+ | |||
+ | ''constrains TS so that it may only contain a date value YYYYMMDD (or YYYYMM or YYYY)'' | ||
+ | |||
+ | ''def: let hasTimezone : Boolean = value.pos("+") > 0 or value.pos("-") > 0'' | ||
+ | |||
+ | ''inv "Date": not hasTimezone and value.size <= 8'' | ||
+ | |||
=Operationalization= | =Operationalization= | ||
May only contain a date value YYYYMMDD (or YYYYMM or YYYY) | May only contain a date value YYYYMMDD (or YYYYMM or YYYY) | ||
==Registered Attributes and Child Elements== | ==Registered Attributes and Child Elements== | ||
− | {| class= | + | {| class="artdecorwiki" |
! @Attribute / Element !! Cardinality !! Datatype | ! @Attribute / Element !! Cardinality !! Datatype | ||
|- | |- | ||
| @value || optional || ts | | @value || optional || ts | ||
|- | |- | ||
− | | @nullFlavor || | + | | @nullFlavor || optional || cs |
|- | |- | ||
|} | |} | ||
− | ==Core Schematron Rules CSR== | + | ==Core Schematron Rules (CSR)== |
− | The following rules are defined in the base core schematrons. | + | The following rules are defined in the base core schematrons ({{Error}} errors, {{Warning}} warnings, {{Info}} infos). |
{{ConstraintBox|Rule ID: '''TS.DATE''' | {{ConstraintBox|Rule ID: '''TS.DATE''' | ||
Extends Rule(s): [[DTr1_TS|TS]] | Extends Rule(s): [[DTr1_TS|TS]] | ||
Line 21: | Line 32: | ||
*{{Error}} dtr1-1-TS.DATE: null or date precision of time stamp shall be YYYYMMDD. | *{{Error}} dtr1-1-TS.DATE: null or date precision of time stamp shall be YYYYMMDD. | ||
}} | }} | ||
− | |||
− | |||
[[Category:DTr1|TS.DATE]] | [[Category:DTr1|TS.DATE]] |
Latest revision as of 10:40, 17 July 2020
Contents
TS.DATE Time Stamp - Flavor Date
Datatype Release 1 | Realm |
---|---|
TS.DATE | UV |
constrains TS so that it may only contain a date value YYYYMMDD (or YYYYMM or YYYY)
def: let hasTimezone : Boolean = value.pos("+") > 0 or value.pos("-") > 0
inv "Date": not hasTimezone and value.size <= 8
Operationalization
May only contain a date value YYYYMMDD (or YYYYMM or YYYY)
Registered Attributes and Child Elements
@Attribute / Element | Cardinality | Datatype |
---|---|---|
@value | optional | ts |
@nullFlavor | optional | cs |
Core Schematron Rules (CSR)
The following rules are defined in the base core schematrons ( errors, warnings, infos).
Rule ID: TS.DATE
Extends Rule(s): TS Constraints |