rfc9557
No security coverage
Code for other modules to provide, or consume, RFC9557 Date and Time. Provides TypedData type, Validator, and model utility classes for getting parts of the (extended) date, manipulating and validating these parts.
Can possibly be simplified if native PHP support is implemented.
Validation
Validation provides two modes:
- RFC9557::MODE_STRICT will reject any mismatched offset with time zone
flagged as critical.
- RFC9557::MODE_NORMAL requires that the mismatch is resolved by the
implementing code.
Requirements & Installation
This module requires no modules outside of Drupal core. Installation as any normal module.
Modules
Modules implementing RFC9557 Date data types or validation:
- Xdate an extensible date field, supporting all RFC9557 date parts
Example usage
The tests provide examples of the model and utility classes, the Validator and the DataType.