date
将时间戳转换为另一种日期格式。
输出格式可以参考Ruby documentation。
参数
time{String}时间, 必填format{String}格式, 可选hash.format{String}格式, 可选returns{String}时间字符串
用法
{{date string string}}
例子
{{ date article.created_at '%B %d, %Y' }}
将时间戳转换为另一种日期格式。
输出格式可以参考Ruby documentation。
time {String} 时间, 必填format {String} 格式, 可选hash.format {String} 格式, 可选returns {String} 时间字符串{{date string string}}
{{ date article.created_at '%B %d, %Y' }}