From: <sub...@co...> - 2006-09-27 21:24:27
|
Author: ianb Date: 2006-09-27 15:24:23 -0600 (Wed, 27 Sep 2006) New Revision: 1954 Modified: FormEncode/trunk/formencode/validators.py Log: Updated DateConverter docstring Modified: FormEncode/trunk/formencode/validators.py =================================================================== --- FormEncode/trunk/formencode/validators.py 2006-09-26 14:36:15 UTC (rev 1953) +++ FormEncode/trunk/formencode/validators.py 2006-09-27 21:24:23 UTC (rev 1954) @@ -1547,10 +1547,11 @@ dd-mm-yy, etc, always assumes month comes second value is the month. - Accepts English month names, also abbreviated. Returns value as - mx.DateTime object. Two year dates are assumed to be within - 1950-2020, with dates from 21-49 being ambiguous and signaling an - error. + Accepts English month names, also abbreviated. Returns value as a + datetime object (you can get mx.DateTime objects if you use + ``datetime_module='mxDateTime'``). Two year dates are assumed to + be within 1950-2020, with dates from 21-49 being ambiguous and + signaling an error. Use accept_day=False if you just want a month/year (like for a credit card expiration date). |