swig里PHP时间戳日期转换

2019-08-242384次阅读swig

先将PHP时间戳*1000转换成js日期,再通过swig的date过滤器实现。

// now = new Date( parseInt(php时间戳) * 1000 );
{{ now|date('Y-m-d') }}
// => 2013-08-14

 

上一篇: #1709 - Index column size too large. The maximum column size is 767 bytes.  下一篇: Promise展开实例返回的结果数组  

swig里PHP时间戳日期转换相关文章