TimeRange:比较和循环PHP中的时间范围

时间:2021-05-25 18:39:24
【文件属性】:
文件名称:TimeRange:比较和循环PHP中的时间范围
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-25 18:39:24
PHP 时间范围 比较并循环使用PHP中的时间范围。 安装 对于手动安装,请将timerange.php复制到您的项目中。 使用Composer安装: composer.phar require jarnstedt/timerange 例子 创建一个TimeRange对象 use TimeRange ; // Create a new TimeRange $ timeRange1 = new TimeRange ( '2013-03-31 00:00:00' , '2013-04-01 01:09:00' ); // You can also use PHP DateTime objects $ start = new DateTime ( '2000-01-01' ); $ end = new DateTime ( '2000-01-05' ); $ timeRange2 = new
【文件预览】:
TimeRange-master
----timerange.php(11KB)
----.travis.yml(162B)
----composer.json(696B)
----README.md(2KB)
----tests()
--------benchmark.test.php(702B)
--------timerange.test.php(19KB)
----phpunit.xml.dist(1KB)

网友评论