【发布时间】:2015-03-29 15:23:45
【问题描述】:
我在 Laravel 中使用查询生成器进行了查询,因此我无法使用 Carbon format() 函数。我还有什么其他方法可以让我的时间戳显示为例如 2015 年 3 月 23 日。谢谢
【问题讨论】:
-
我通过使用 date('F d, o', strtotime($topic->created_at)) 解决了这个问题
标签: php laravel datetime timestamp php-carbon