Releases: thephpleague/period
Releases · thephpleague/period
version 4.10.0
Added
Period::toIso8601- Charts featuring ported from Bakame\Period\Vizualizer
Fixed
- Fix issue with
Sequence::intersectionsmethod.
Deprecated
Period::__stringreplaced byPeriod::toIso8601
Removed
- Support for PHP7.1
version 4.9.0
Added
-
$boundaryTypeargument added to the following named constructors:Period::fromDayPeriod::fromIsoWeekPeriod::fromMonthPeriod::fromQuarterPeriod::fromSemesterPeriod::fromYearPeriod::fromIsoYear
-
Period::subtract -
Sequence::subtract
Fixed
- None
Deprecated
Period::substractusePeriod::subtractinsteadSequence::substractuseSequence::subtractinstead
Removed
- None
version 4.8.1
Added
- None
Fixed
Sequencenegative offsets for a object with only onePeriodinstance issue #85
Deprecated
- None
Removed
- None
version 4.8.0
Added
Datepointmethods returningPeriodobjects supports boundaryTypePeriod::mergesupports empty arguments.Sequence::containssupports empty arguments.Sequence::unshiftsupports empty arguments.Sequence::pushsupports empty arguments.Sequenceclass supports negative offsets.
Fixed
Duration::adjustedTono longer comparesDateIntervalobjects to be compatible with PHP7.4+
Deprecated
- None
Removed
- None
version 4.7.1
Added
- None
Fixed
- Improve
Duration::createFromDateStringbug fix to take into account DateInterval::createFromDateString
bug fix - Update the development tools to Infection 0.13
Deprecated
- None
Removed
- None
version 4.7.0
Added
Sequence::getTotalTimestampIntervalsee PR #79Period::substractsee PR #80Sequence::substractsee PR #81
Fixed
- Update
Duration::createFromDateStringto take into account DateInterval::createFromDateString
bug fix - Update the development tools to PHPUnit8.0 and PHPstan 0.11
Deprecated
- None
Removed
- None
version 4.6.0
Added
Duration::adjustedTo- Internals: added support for PHP7.4 and PHP8.0 in travis.yml
Fixed
- None
Deprecated
Duration::withoutCarryOveruseDuration::adjustedToinstead
Removed
- None
version 4.5.0
Added
Datepoint::isBeforeDatepoint::bordersOnStartDatepoint::isStartingDatepoint::isDuringDatepoint::isEndingDatepoint::bordersOnEndDatepoint::isAfterDatepoint::abutsDuration::createnow supports chronometer formatDuration::withoutCarryOver
Fixed
Period::durationCompareto take into account Timezone and DST
Deprecated
Duration::__toStringuseDuration::formatinstead
Removed
- None
version 4.4.0
Added
- Added support for the boundary type
Period::EXCLUDE_START_INCLUDE_ENDPeriod::INCLUDE_START_EXCLUDE_ENDPeriod::EXCLUDE_ALLPeriod::INCLUDE_ALLPeriod::getBoundaryTypePeriod::isStartExcludedPeriod::isStartIncludedPeriod::isEndExcludedPeriod::isEndIncludedPeriod::withBoundaryTypePeriod::__constructadds the$boundaryTypeargument;Period::afteradds the$boundaryTypeargument;Period::beforeadds the$boundaryTypeargument;Period::aroundadds the$boundaryTypeargument;Period::fromDatePeriodadds the$boundaryTypeargument;
- Added missing Allen's Algebra intervals
Period::bordersOnStartPeriod::bordersOnEndPeriod::isDuringPeriod::isStartedByPeriod::isEndedBy
- Added additional methods to the Sequence class
Sequence::unionsSequence::intersectionsSequence::gapsSequence::boundariesSequence::reduce
Fixed
- None
Deprecated
Sequence::getIntersectionsuseSequence::intersectionsinsteadSequence::getGapsuseSequence::gapsinsteadSequence::getBoundariesuseSequence::boundariesinstead
Removed
- None