📜  django tempalte 将日期时间标记为时间戳 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:13.447000             🧑  作者: Mango

代码示例1
{% now "U" %}

The "U" is a date format for Unix epoch, and can also be used with built-in date filter. So, if you have the date in a variable:

{{ value|date:"U" }}