Package grassyknoll :: Package lib :: Module Norman :: Class DateTimeNorman
[hide private]

Class DateTimeNorman

source code


Normalizes to a datetime.datetime


Note: NOTE: this should probably be stricter. dateutils always returns a full datetime, with date=today or with time=00:00 if not specified. We also don't support tzinfo, largely b/c it sucks.

Instance Methods [hide private]
 
__init__(self, optional=False, filled=False, prohibited=False, **kwargs) source code
 
__call__(self, x) source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Instance Variables [hide private]
  kwargs
keyword arguments to dateutil.parser.parse, see its documentation

Inherited from Norman: filled, optional, prohibited

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, optional=False, filled=False, prohibited=False, **kwargs)
(Constructor)

source code 
Overrides: Norman.__init__

__call__(self, x)
(Call operator)

source code 
Overrides: Norman.__call__