Class IS_DATE_IN_RANGE
source code
object --+
|
Validator --+
|
IS_DATE --+
|
IS_DATE_IN_RANGE
example:
>>> v = IS_DATE_IN_RANGE(minimum=datetime.date(2008,1,1), maximum=datetime.date(2009,12,31), format="%m/%d/%Y",error_message="oops")
>>> v('03/03/2008')
(datetime.date(2008, 3, 3), None)
>>> v('03/03/2010')
(datetime.date(2010, 3, 3), 'oops')
>>> v(datetime.date(2008,3,3))
(datetime.date(2008, 3, 3), None)
>>> v(datetime.date(2010,3,3))
(datetime.date(2010, 3, 3), 'oops')
|
__init__(self,
minimum=1,
maximum=1,
format=' %Y-%m-%d ' ,
error_message=1)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature |
source code
|
|
|
|
Inherited from IS_DATE :
formatter
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|
Inherited from object :
__class__
|
__init__(self,
minimum=1,
maximum=1,
format=' %Y-%m-%d ' ,
error_message=1)
(Constructor)
| source code
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Overrides:
IS_DATE.__init__
|