Skip to content

Instantly share code, notes, and snippets.

@willwhui
Created December 6, 2017 02:29
Show Gist options
  • Save willwhui/25bfe2b213c1728bb9e02dbd6a8ca5ab to your computer and use it in GitHub Desktop.
Save willwhui/25bfe2b213c1728bb9e02dbd6a8ca5ab to your computer and use it in GitHub Desktop.
使用模板生成数据
@willwhui
Copy link
Author

willwhui commented Dec 6, 2017

时间的格式化:
{{ now().strftime('%-I:%M %P') }}
结果:
10:18 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment