stadly/php-date

Augmenting the built-in PHP date functionality.

v1.0.1 2018-12-04 08:22 UTC

This package is auto-updated.

Last update: 2024-10-18 00:33:21 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Augmenting the built-in PHP date functionality.

Install

Via Composer

$ composer require stadly/php-date

Usage

use Stadly\Date\Interval;

Interval::compare(new \DateInterval('P1M'), new \DateInterval('P27D')); // 1
Interval::compare(new \DateInterval('P1M'), new \DateInterval('P30D')); // null
Interval::compare(new \DateInterval('P1M'), new \DateInterval('P32D')); // -1

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email magnar@myrtveit.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.