Skip to content

Releases: jeromegamez/duration-php

5.0.0

Choose a tag to compare

@jeromegamez jeromegamez released this 26 Aug 11:09
5.0.0
a0bd064
  • Dropped support for PHP <8.3
  • Removed deprecated Duration::toDateInterval() method

4.3

4.3

Choose a tag to compare

@jeromegamez jeromegamez released this 01 Nov 15:46
7561571

Added support for all PHP 8.x versions

4.2

4.2

Choose a tag to compare

@jeromegamez jeromegamez released this 19 Dec 20:17
86e5f31

Added support for PHP 8.0

4.1

4.1

Choose a tag to compare

@jeromegamez jeromegamez released this 26 Apr 01:35
e86a41e
  • 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

4.0

Choose a tag to compare

@jeromegamez jeromegamez released this 03 Sep 16:46
2369914
  • 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

Choose a tag to compare

@jeromegamez jeromegamez released this 28 Jan 07:24
399fff5

New DateTimeImmutable instances ignore timezones when created #3

3.0

3.0

Choose a tag to compare

@jeromegamez jeromegamez released this 28 Jan 06:58
88f7e41

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

2.0

2.0

Choose a tag to compare

@jeromegamez jeromegamez released this 25 Jan 11:31
67abef8

The Duration class is now extensible instead of macroable.

1.1

1.1

Choose a tag to compare

@jeromegamez jeromegamez released this 24 Jan 17:37
a6c7834
  • Thrown exceptions implement Gamez\Duration\DurationException
  • An operation resulting in an invalid duration will throw a Gamez\Duration\Exception\InvalidDuration

1.0.1

Choose a tag to compare

@jeromegamez jeromegamez released this 24 Jan 16:53
7242cf8

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