ISO8601DateTime
ISO 8601 Date Time argument.
Attributes
| Attribute | Type | Description |
|---|---|---|
| name | string = iso-86091 | The internal identifier for the parameter type used by the Click library to represent ISO 8601 date-time arguments. |
Methods
convert()
@classmethod
def convert(
value: string,
param: click.Parameter,
ctx: click.Context
) - > datetime
Parses a string value into a datetime object if it matches the ISO 8601 format, otherwise raises a validation error.
Parameters
| Name | Type | Description |
|---|---|---|
| value | string | The raw input string to be converted into a datetime object. |
| param | click.Parameter | The parameter object that this value is being associated with. |
| ctx | click.Context | The current Click execution context for the command line interface. |
Returns
| Type | Description |
|---|---|
datetime | A datetime object representing the parsed input value. |