Go to the latest version of this document.

# ``twisted`.`python`.`formmethod`.`Date``

class documentation

`class Date(Argument): (source)`

Constructor: `Date(name, allowNone, default, shortDesc, ...)`

View In Hierarchy

A date -- (year, month, day) tuple.

Method | `__init__` | Undocumented
Method | `coerce` | Return tuple of ints (year, month, day).
Instance Variable | `allowNone` | Undocumented
Instance Variable | `defaultDefault` | Undocumented

Inherited from `Argument`:

Method | `addHints` | Undocumented
Method | `getHint` | Undocumented
Method | `getLongDescription` | Undocumented
Method | `getShortDescription` | Undocumented
Instance Variable | `default` | Undocumented
Instance Variable | `hints` | Undocumented
Instance Variable | `longDesc` | Undocumented
Instance Variable | `name` | Undocumented
Instance Variable | `shortDesc` | Undocumented

def __init__(self, name, allowNone=1, default=None, shortDesc=None, longDesc=None, hints=None): (source)
overrides `twisted.python.formmethod.Argument.__init__`

Undocumented

def coerce(self, args): (source)
overrides `twisted.python.formmethod.Argument.coerce`

Return tuple of ints (year, month, day).

allowNone = (source)
overrides `twisted.python.formmethod.Argument.allowNone`

Undocumented

defaultDefault: `tuple[int, int, int] | None` = (source)
overrides `twisted.python.formmethod.Argument.defaultDefault`

Undocumented