Drupal is a registered trademark of Dries Buytaert

rfc9557

No security coverage
View on drupal.org

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.

Activity

Total releases
6
First release
May 2025
Latest release
4 months ago
Release cadence
35 days
Stability
0% stable

Release Timeline

Releases

Version Type Release date
1.0.0-beta1 Pre-release Oct 27, 2025
1.0.0-alpha6 Pre-release Aug 10, 2025
1.0.0-alpha5 Pre-release Aug 9, 2025
1.0.0-alpha4 Pre-release Jun 4, 2025
1.0.0-alpha3 Pre-release Jun 1, 2025
1.0.0-alpha2 Pre-release May 3, 2025