| Term Name: | bdqtest:8d787cb5-73e2-4c39-9cd1-67c7361dc02e |
| Label: | VALIDATION_DAY_INRANGE |
| Term version IRI: | https://rs.tdwg.org/bdqtest/terms/version/8d787cb5-73e2-4c39-9cd1-67c7361dc02e-2025-03-06 |
| Version of: | https://rs.tdwg.org/bdqtest/terms/8d787cb5-73e2-4c39-9cd1-67c7361dc02e |
| Issued: | 2025-03-06 |
| Definition: | A Validation Test, applied to a SingleRecord, that evaluates: Is the value of dwc:day interpretable as a valid integer between 1 and 28 inclusive, or is it validly 29, 30 or 31 given the dwc:month and dwc:year? It returns: INTERNAL_PREREQUISITES_NOT_MET if (1) dwc:day is bdqval:Empty, or (2) dwc:day is not interpretable as an integer, or (3) dwc:day is interpretable as an integer between 29 and 31 inclusive and dwc:month is not interpretable as an integer between 1 and 12, or (4) dwc:month is interpretable as the integer 2 and dwc:day is interpretable as the integer 29 and dwc:year is not interpretable as a valid ISO 8601 year; COMPLIANT if (1) the value of dwc:day is interpretable as an integer between 1 and 28 inclusive, or (2) dwc:day is interpretable as an integer between 29 and 30 and dwc:month is interpretable as an integer in the set (4,6,9,11), or (3) dwc:day is interpretable as an integer between 29 and 31 and dwc:month is interpretable as an integer in the set (1,3,5,7,8,10,12), or (4) dwc:day is interpretable as the integer 29 and dwc:month is interpretable as the integer 2 and dwc:year is interpretable as is a valid leap year (evenly divisible by 400 or (evenly divisible by 4 but not evenly divisible by 100)); otherwise NOT_COMPLIANT. |
| Type: | Validation |
| Status: | recommended |
| Replaces: | https://rs.tdwg.org/bdqtest/terms/version/8d787cb5-73e2-4c39-9cd1-67c7361dc02e-2024-09-16 |
Metadata about this term version are available in the following formats/serializations:
For more information about this term version in the context of sets of terms that include it, please refer to the following term list versions:
https://rs.tdwg.org/bdqtest/version/terms/2025-03-06
https://rs.tdwg.org/bdqtest/version/terms/2025-03-07
https://rs.tdwg.org/bdqtest/version/terms/2026-04-24
https://rs.tdwg.org/bdqtest/version/terms/2026-11-12