更新时间:2023-02-03 15:40:47
如注释中所述,您的日期早于unix时代. DateTime() 可以解决此问题.
DateTime()
As mentioned in the comments your date is before the unix epoch. DateTime() allows you to work around that.
$dt = new DateTime("1899-12-30 06:52:47"); echo $dt->format("h:i:s");
将日期时间转换为时间戳然后再次返回
将多种日期时间格式转换为单个 mysql 日期时间格式
将 MySql 日期时间戳转换为 JavaScript 的日期格式
将日期时间字段时间戳从mysql转换为php
将mysql时间戳转换为实际的日期和时间?
php将日期时间转换为UTC
将碳日期转换为 mysql 时间戳.
将时间戳转换为可读的日期/时间PHP
将mysql时间戳转换为实际日期和时间?
将MySQL UTC日期时间转换为UNIX时间戳