input4mips_validation.validation.creation_date#
input4mips_validation.validation.creation_date
#
Validation of the creation_date attribute
CREATION_DATE_FORMAT: str = '%Y-%m-%dT%H:%M:%SZ'
module-attribute
#
Format to use for creation dates
According to the specifications, the creation date must be provided as an ISO8601 formatted string in the UTC timezone. In otherwords, it must take the form given above, which can also be written as "YYYY-MM-DDThh:mm:ssZ" (where the trailing "Z" indicates that the timezone is UTC).
For futher details, see:
- https://stackoverflow.com/a/29282022
- https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations
This constant is exposed for clarity. If you change it, we do not guarantee correct performance of the codebase.
validate_creation_date(creation_date)
#
Validate the creation date value
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
creation_date
|
str
|
Creation date value to validate |
required |
Raises:
| Type | Description |
|---|---|
ValueError
|
|