Skip to content

Releases: dakujem/time

v1.1.2

Choose a tag to compare

@dakujem dakujem released this 22 Dec 12:57
287eb3b

Full compatibility for PHP 8.5

v1.1.1

Choose a tag to compare

@dakujem dakujem released this 18 Dec 21:49
ffe6d41

full support for PHP 8.4

v1.1

Choose a tag to compare

@dakujem dakujem released this 10 Dec 08:59

changelog

Supports PHP 8.1 and rises minimum PHP version to 7.2.

Edge case
Fixes previously incoherent behaviour of methods Time::mod and Time::clipToDayTime when the internal value is null.
This has been fixed and calling these methods will result in a new Time instance with internal null value as well (previously it was 0).

v1

v1

Choose a tag to compare

@dakujem dakujem released this 30 Jan 08:02

$ composer require dakujem/time "^1"

Time::getSecondFraction + PHP 7.1 support

Choose a tag to compare

@dakujem dakujem released this 05 Jun 11:06
  • changed return value: Time::getSeconds now always returns integer type

  • added Time::getSecondFraction method returning

    • double fraction of a second (reminder) for floating point time
    • null when using integral time
  • fixed issue with PHP 7.1

Reimplemented Time to be immutable

Choose a tag to compare

@dakujem dakujem released this 25 Sep 21:02

Revamped classes so that:

  • Time is now immutable by default (!)
  • TimeMutable added and TimeImmutable removed
  • Time now only contains the temporal value, no format value anymore
  • TimeFactory now creates immutable Time objects by default
  • formatting and parsing functionality moved to TimeHelper
  • there is an interface for time objects now

0.1.0

Choose a tag to compare

@dakujem dakujem released this 15 May 14:57
composer and readme updated