Skip to content

Releases

v0.3.1

Choose a tag to compare

@thesis-php-bot thesis-php-bot released this 18 Nov 09:42

Changed

  • Requires PHP 8.2.2+, 64-bit or 32-bit: the polyfill of Time\Duration serves PHP 8.2 to 8.5,
    below PHP 8.4 \RoundingMode comes from symfony/polyfill-php84.
  • On 32-bit PHP a duration is up to about 68 years, and toNs(), toUs(), toMs() and toSec() throw
    Time\TimeException for a result above PHP_INT_MAX.

Fixed

  • A function given NAN throws ValueError without a warning of PHP 8.5 first.

v0.3.0

Choose a tag to compare

@thesis-php-bot thesis-php-bot released this 16 Nov 18:40

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.