gpt4 book ai didi

php - 将Mysql时间戳转换为发布后的时间

转载 作者:太空宇宙 更新时间:2023-11-03 12:04:01 24 4
gpt4 key购买 nike

<分区>

我有一个具有以下属性的 mysql 列

listDate TIMESTAMP DEFAULT = CURRENT_TIME

然后我像这样在我的表格中展示它

echo "<td>" . $row['listDate']  . "</td>";

如何将输出转换为发布后的时间而不是默认值:

2014-12-17 00:32:50

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com