Django Book 翻译
菜单>:
TOC
返回
原文:
Lets create a second view that displays the current date and time offset by a certain number of hours. The goal is to craft a site in such a way that the page ``/time/plus/1/`` displays the date/time one hour into the future, the page ``/time/plus/2/`` displays the date/time two hours into the future, the page ``/time/plus/3/`` displays the date/time three hours into the future, and so on.
翻译:
让我们创建第二个视图来显示当前时间和加上时间偏差量的时间,设计是这样的: ``/time/plus/1/`` 显示当前时间+1个小时的页面 ``/time/plus/2/`` 显示当前时间+2个小时的页面 ``/time/plus/3/`` 显示当前时间+3个小时的页面,以此类推。
备注:
译者: