Skip to content

Releases: jeromegamez/duration-php

4.3

01 Nov 15:46
7561571
Compare
Choose a tag to compare

Added support for all PHP 8.x versions

4.2

19 Dec 20:17
86e5f31
Compare
Choose a tag to compare
4.2

Added support for PHP 8.0

4.1

26 Apr 01:35
e86a41e
Compare
Choose a tag to compare
4.1
  • 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.

4.0

03 Sep 16:46
2369914
Compare
Choose a tag to compare
4.0
  • 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.

3.0.1

28 Jan 07:24
399fff5
Compare
Choose a tag to compare

New DateTimeImmutable instances ignore timezones when created #3

3.0

28 Jan 06:58
88f7e41
Compare
Choose a tag to compare
3.0

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

2.0

25 Jan 11:31
67abef8
Compare
Choose a tag to compare
2.0

The Duration class is now extensible instead of macroable.

1.1

24 Jan 17:37
a6c7834
Compare
Choose a tag to compare
1.1
  • Thrown exceptions implement Gamez\Duration\DurationException
  • An operation resulting in an invalid duration will throw a Gamez\Duration\Exception\InvalidDuration

1.0.1

24 Jan 16:53
7242cf8
Compare
Choose a tag to compare

Fixed errors in the documentation. Nobody likes errors in the documentation :).

1.0

24 Jan 16:25
2f5def3
Compare
Choose a tag to compare
1.0

Initial release