This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author paul.j3
Recipients bethard, paul.j3, petedmarsh
Date 2015-04-07.22:57:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428447454.3.0.165359164527.issue23884@psf.upfronthosting.co.za>
In-reply-to
Content
Examples of datetime types from Stackoverflow:

http://stackoverflow.com/questions/21437258/defining-python-argparse-arguments
The suggested answer (but not accepted) is 'type=lambda s: datetime.datetime.strptime(s, '%Y-%m-%d')'

another
http://stackoverflow.com/questions/12462074/python-argparse-create-timedelta-object-from-argument

which references
https://gist.github.com/jnothman/4057689
'timedeltatype.py: An argparse type factory that produces datetime.timedelta objects'

and
http://stackoverflow.com/questions/25470844/specify-format-for-input-arguments-argparse-python
with a type function
History
Date User Action Args
2015-04-07 22:57:34paul.j3setrecipients: + paul.j3, bethard, petedmarsh
2015-04-07 22:57:34paul.j3setmessageid: <1428447454.3.0.165359164527.issue23884@psf.upfronthosting.co.za>
2015-04-07 22:57:34paul.j3linkissue23884 messages
2015-04-07 22:57:34paul.j3create