首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Python > 解析区域设置特定的日期从自由到datetime格式。

解析区域设置特定的日期从自由到datetime格式。

资 源 简 介

Actually, this is just a wrapper around amazing dateutil library with a kind of i18n support. You may use this as command line tool: ``` $ ./date_parser.py -h Usage: date_parser.py [-f] [-q] Options: --version show program"s version number and exit -h, --help show this help message and exit -f, --force-update force self-updating of TRANSLATION_DICT in this file -q, --quiet don"t print debug messages to stdout $ ./date_parser.py --version 0.2 $ python date_parser.py "13 августа 2010, 13:00" DEBUG:dateparser:datestring has been translated to "13 August 2010, 13:00" 13 августа 2010, 13:00 -> 2010-08-13 13:00:00 ``` Or as a usual library: >>> from date_parser import parse>>> print parse("17 April 2010 Saturday")2010-04-17 00:00:00>>> print type(parse("17 April 2010 Saturday"))>>> print parse("воскресенье

文 件 列 表

date_parser.py
VIP VIP
0.191986s