m1roff / date-time-helper
DateTime Helper
1.0.0
2022-11-25 18:38 UTC
Requires
- php: ^8.1
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-25 23:07:01 UTC
README
Get start
Install with composer
composer require m1roff/date-time-helper
Usage
$dateTimeHelper = new DateTimeHelper(); $dateTimeHelper->startOfYear(); $dateTimeHelper->startOfQuarter(); $dateTimeHelper->startOfMonth(); $dateTimeHelper->startOfWeek(); $dateTimeHelper->endOfYear(); $dateTimeHelper->endOfQuarter(); $dateTimeHelper->endOfMonth(); $dateTimeHelper->endOfWeek();