V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
Livid
V2EX  ›  Python

Arrow

  •  
  •   Livid · 2012-11-27 12:53:57 +08:00 · 3288 次点击
    这是一个创建于 4173 天前的主题,其中的信息可能已经有所发展或是发生改变。
    https://github.com/crsmithdev/arrow

    一个新的处理时间和日期的 Python 库。

    看来不只是我觉得在 Python 里处理时间很纠结。

    通过 pip 即可安装。

    pip install arrow
    3 条回复    1970-01-01 08:00:00 +08:00
    alexzhan
        1
    alexzhan  
       2012-11-27 13:54:17 +08:00
    现在PB3怎么处理的显示时间?跟PB2一样吗?
    clino
        2
    clino  
       2012-11-27 13:58:28 +08:00
    前几天刚在 http://www.oschina.net/question/12_78983?from=20121118 看到一个
    '''
    2. dateutil

    安装方法:pip install dateutil

    处理日期很痛苦,多亏有了 dateutil
    '''
    JerryKwan
        3
    JerryKwan  
       2012-11-28 13:41:29 +08:00
    dateiutil挺不错,也算是目前采用比较广泛的一个python时间处理库了,但在使用的时候需要区别python版本,好像是python2对应的是dateutil 1.5的那个版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1755 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 00:31 · PVG 08:31 · LAX 17:31 · JFK 20:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.