gusarov112/date-range

一个简单的日期范围类,用于存储两个 DateTimeImmutable 对象的有效范围

v1.0.1 2020-07-18 19:49 UTC

This package is auto-updated.

Last update: 2024-09-19 05:03:22 UTC


README

安装

然后需要此包

composer require gusarov112/date-range

使用

$dateRange = new \Gusarov112\DateRange\DateRange(
    new DateTimeImmutable('first day of this month 00:00:00'),
    new DateTimeImmutable('last day of this month 23:59:59')
);