Repository navigation
Releases
Releases · thesis-php/time
v0.3.1
Changed
- Requires PHP 8.2.2+, 64-bit or 32-bit: the polyfill of
Time\Durationserves PHP 8.2 to 8.5,
below PHP 8.4\RoundingModecomes fromsymfony/polyfill-php84. - On 32-bit PHP a duration is up to about 68 years, and
toNs(),toUs(),toMs()andtoSec()throw
Time\TimeExceptionfor a result abovePHP_INT_MAX.
Fixed
- A function given NAN throws
ValueErrorwithout a warning of PHP 8.5 first.
v0.3.0
The package is new and has nothing in common with the older thesis/time 0.1 and 0.2,
which is now thesis/time-span.
Added
- Functions for Time\Duration of PHP 8.6 and a polyfill of it for PHP 8.5, PSR-20 clocks.