Releases
4.0.0
Compare
Sorry, something went wrong.
No results found
Added
Classes
Methods
Period::durationCompare
Period::durationEquals
Period::format
Period::expand
Period::equals
Period::getDatePeriodBackwards
Functions
League\Period\datepoint
League\Period\duration
League\Period\year
League\Period\semester
League\Period\quarter
League\Period\month
League\Period\day
League\Period\hour
League\Period\minute
League\Period\second
League\Period\instant
League\Period\iso_year
League\Period\iso_week
League\Period\interval_after
League\Period\interval_before
League\Period\interval_around
League\Period\interval_from_dateperiod
Fixed
The Period class is now final
Period::JsonSerialize now returns datepoint in JavaScript compatible notation
Period::diff always returns an array containing two values.
An instance with a duration equals to DateInterval('PT0S') will contains no datepoint not even its starting datepoint.
Deprecated
Removed
Support for PHP 7.0
Period::next
Period::previous
Period::add
Period::sub
Period::createFromYear replaced by League\Period\year
Period::createFromMonth replaced by League\Period\month
Period::createFromWeek replaced by League\Period\iso_week
Period::createFromDay replaced by League\Period\day
Period::createFromSemester replaced by League\Period\semester
Period::createFromQuarter replaced by League\Period\quarter
Period::createFromDuration replaced by League\Period\interval_after
Period::createFromDurationBeforeEnd replaced by League\Period\interval_before
Period::sameValueAs replaced by Period::equals
Period::sameDurationAs replaced by Period::durationEquals
Period::compareDuration replaced by Period::durationCompare
Period::withDuration replaced by Period::withDurationAfterStart
You can’t perform that action at this time.