BER分博客 - 时间格式化 https://blog.berfen.com/tag/%E6%97%B6%E9%97%B4%E6%A0%BC%E5%BC%8F%E5%8C%96/ zh-CN Wed, 22 Jan 2020 12:58:00 +0000 Wed, 22 Jan 2020 12:58:00 +0000 ThinkPHP5.0模板时间格式转换为中文格式 https://blog.berfen.com/post/6.html https://blog.berfen.com/post/6.html Wed, 22 Jan 2020 12:58:00 +0000 taotecode ThinkPHP5.0模板时间格式转换为中文格式

问题背景

在ThinkPHP5.0模板开发中,我们经常需要将数据库中的时间格式转换为更友好的中文显示格式。本文针对这一常见需求,详细介绍了几种实现方法,并分享了一个实际开发中遇到的"小坑"及其解决方案。

[...]

]]>
0 https://blog.berfen.com/post/6.html#comments