Tornado Documentation
http://www.sunp.eu.org/tornado/
Tornado on GitHub
https://github.com/facebook/tornado/
Tornado Gists
http://tornadogists.org/
tornadoxyz
V2EX  ›  Tornado

tornado.locale.format_date()的日期汉化问题

  •  
  •   tornadoxyz · May 19, 2015 · 5500 views
    This topic created in 4023 days ago, the information mentioned may be changed or developed.
    在Introduction to tornado一书中,使用
    ```
    {{ locale.format_date() }}
    ```
    函数对时间戳进行转化,可是转换后的结果为英文的,例如 2 seconds ago,有没有方法将其汉化为中文呢?粗略的看过tornado.locale模块的源码,可还是一头雾水。望各位朋友不吝赐教。
    2 replies    2015-09-22 14:38:50 +08:00
    SCaffrey
        1
    SCaffrey  
       May 22, 2015
    前排帮顶阿……
    (尽量对别人有帮助)
    heofonum
        2
    heofonum  
       Sep 22, 2015
    relative=False
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3115 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 76ms · UTC 13:56 · PVG 21:56 · LAX 06:56 · JFK 09:56
    ♥ Do have faith in what you're doing.