All Versions
Latest Version
Avg Release Cycle
65 days
Latest Release
1066 days ago

Changelog History

  • v4.1 Changes

    April 26, 2020
    • PHP 7.3.4 is now the minimum required version.
    • Duration now extends DateInterval 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 in Duration::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, 2019

    The Duration class is final again (and will stay that way) #2

  • v2.0 Changes

    January 25, 2019

    The 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
  • 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