Releases: dakujem/time
Releases · dakujem/time
Release list
v1.1.2
v1.1.1
v1.1
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
Time::getSecondFraction + PHP 7.1 support
-
changed return value:
Time::getSecondsnow always returnsintegertype -
added
Time::getSecondFractionmethod returningdoublefraction of a second (reminder) for floating point timenullwhen using integral time
-
fixed issue with PHP 7.1
Reimplemented Time to be immutable
Revamped classes so that:
Timeis now immutable by default (!)TimeMutableadded andTimeImmutableremovedTimenow only contains the temporal value, no format value anymoreTimeFactorynow creates immutableTimeobjects by default- formatting and parsing functionality moved to
TimeHelper - there is an interface for time objects now