PHPackages                             ealore/dateinterval - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ealore/dateinterval

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ealore/dateinterval
===================

This class extends PHP's \\DateInterval class providing weeks+days and negative spec support

1.0.4(9y ago)023MITPHP

Since Feb 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Ealore/DateInterval)[ Packagist](https://packagist.org/packages/ealore/dateinterval)[ RSS](/packages/ealore-dateinterval/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (1)Versions (6)Used By (0)

[![Build Status](https://camo.githubusercontent.com/3250858d9eeaf0dc0c9fd7ce9a9e0b48bf1d81956873339033a8783d7e35aad7/68747470733a2f2f7472617669732d63692e6f72672f45616c6f72652f44617465496e74657276616c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Ealore/DateInterval)

Ealore\\DateInterval
====================

[](#ealoredateinterval)

This is an extension of PHP's \\DateInterval with new methods and support for interval specification with both weeks and days at the same time, while in the standard implementation it's possible to use either.

Usage
-----

[](#usage)

```
