Display timestamp in django template

前端 未结 5 1107
太阳男子
太阳男子 2020-12-16 13:26

I need to display timestamp of a post with in django template. The timestamp would be like:

\"timestamp\":1337453263939 in milli seconds

I

5条回答
  •  难免孤独
    2020-12-16 14:09

    Maybe you can use the date filter: https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs#date

提交回复
热议问题