且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

处理时间跨度的***方式?

更新时间:2023-02-26 16:24:54

使用 unix 时间戳.如果是mysql数据,那么你可以像这样存储时间戳,如果不是那么你也可以将mysql datetimes转换为unix时间戳.

use the unix timestamp. If it's mysql data, then you can store timestamps like this, if not then you can also convert mysql datetimes to unix timestamps.

php.net 站点上有大量关于此功能的文档,但它们都相对简单且易于使用.

There is a bunch of documentation on the functionality pertaining to this at the php.net site, but it's all relatively simple and easy to use.

祝你好运.