Releases: thephpleague/period
Releases · thephpleague/period
version 4.2.0
Added
League\Period\Datepoint
League\Period\Duration
Period::fromIsoYear
Period::fromYear
Period::fromSemester
Period::fromQuarter
Period::fromMonth
Period::fromIsoWeek
Period::fromDay
Period::after
Period::before
Period::around
Period::fromDatePeriod
Sequence::map
Fixed
- None
Deprecated
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
Removed
- None
version 4.1.0
Added
League\Period\Sequence
League\Period\InvalidIndex
Fixed
- None
Deprecated
- None
Removed
- None
version 4.0.1
Added
- None
Fixed
- Period::split does not work with daylight saving see issue #68
Deprecated
- None
Removed
- None
version 4.0.0
Added
Classes
Exception
class
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 notationPeriod::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
- None
Removed
- Support for PHP
7.0
Period::next
Period::previous
Period::add
Period::sub
Period::createFromYear
replaced byLeague\Period\year
Period::createFromMonth
replaced byLeague\Period\month
Period::createFromWeek
replaced byLeague\Period\iso_week
Period::createFromDay
replaced byLeague\Period\day
Period::createFromSemester
replaced byLeague\Period\semester
Period::createFromQuarter
replaced byLeague\Period\quarter
Period::createFromDuration
replaced byLeague\Period\interval_after
Period::createFromDurationBeforeEnd
replaced byLeague\Period\interval_before
Period::sameValueAs
replaced byPeriod::equals
Period::sameDurationAs
replaced byPeriod::durationEquals
Period::compareDuration
replaced byPeriod::durationCompare
Period::withDuration
replaced byPeriod::withDurationAfterStart
version 3.4.0
Added
Period::withDurationBeforeEnd
Period::splitBackwards
Fixed
- None
Deprecated
- None
Removed
- dropped support for HHVM
version 3.3.0
Added
Period::move
see Pull Request #40Period::moveStartDate
see Pull Request #42Period::moveEndDate
see Pull Request #42
Fixed
- None
Deprecated
Period::add
you should usePeriod::moveEndDate
instead see Pull Request #42Period::sub
you should usePeriod::moveEndDate
instead see Pull Request #42
Removed
- None
version 3.2.0
version 3.1.1
Added
- None
Fixed
Period::contains
see issue #31- microseconds are taken into account when converting
DateTimeInterface
objects.
Deprecated
- None
Removed
- None
version 3.1.0
Added
Period::createFromDay
Fixed
Period::getDatePeriod
adding the$option
parameterDateTime
toDateTimeImmutable
convertion improved for PHP 5.6+ version- Bumped version requirement to PHP 5.5.9 because of a bug in
DatePeriod
constructor
Deprecated
- None
Removed
- None