Mysql date_format 格式化时间结果产生误差
原因:
date_format(时间, '%Y-%m-%d %H:%I:%S')
应该为
date_format(时间, '%%Y-%m-%d %H:%i:%s')
不然会产生几分钟误差,写法错误.
Mysql date_format 格式化时间结果产生误差
原因:
date_format(时间, '%Y-%m-%d %H:%I:%S')
应该为
date_format(时间, '%%Y-%m-%d %H:%i:%s')
不然会产生几分钟误差,写法错误.
本文标题:Mysql date_format 格式化时间误差问题
本文链接:https://www.haomeiwen.com/subject/zbdnzqtx.html
网友评论