Django Book 翻译
菜单>:
TOC
返回
原文:
Takes an optional argument that is a variable containing the date to use as the comparison point (instead of *now* ). If ``from_date`` contains 22 June 2006, then ``{{ conference_date|timeuntil:from_date }}`` will return 7 days.
翻译:
接受一个可选的参数,该参数是一个包含比较日期的变量(该参数默认值是 now). 举例来说, 如果 from_date 是一个日期实例表示 2006-06-22, 那么 {{ conference_date|timeuntil:from_date }} 会返回 "7 days".
备注:
译者: