All Versions
8
Latest Version
Avg Release Cycle
65 days
Latest Release
1791 days ago
Changelog History
Changelog History
-
v4.1 Changes
April 26, 2020- PHP 7.3.4 is now the minimum required version.
Duration
now extendsDateInterval
and can be used interchangeably.- ๐ Objects having a
__toString()
method are now supported values. - ๐
Duration::toDateInterval()
is now deprecated.
-
v4.0 Changes
September 03, 2019- PHP 7.3 is now the minimum required version.
- ๐
0
,null
,false
,true
are now supported values as in that they result inDuration::none()
(PT0S
). - ๐ An
InvalidDuration
error will be thrown if a value is given without a unit or if the given value cannot be parsed. toIntervalSpec()
did more than it needed to do. Instead of formatting the current value the spec itself is now returned.
-
v3.0.1 Changes
January 28, 2019๐ New
DateTimeImmutable
instances ignore timezones when created #3 -
v3.0 Changes
January 28, 2019The
Duration
class is final again (and will stay that way) #2 -
v2.0 Changes
January 25, 2019The
Duration
class is now extensible instead of macroable. -
v1.1 Changes
January 24, 2019- Thrown exceptions implement
Gamez\Duration\DurationException
- ๐ป An operation resulting in an invalid duration will throw a
Gamez\Duration\Exception\InvalidDuration
- Thrown exceptions implement
-
v1.0.1 Changes
January 24, 2019๐ Fixed errors in the documentation. Nobody likes errors in the documentation :).
-
v1.0 Changes
January 24, 2019๐ Initial release