Releases: thephpleague/period
Releases · thephpleague/period
version 4.9.0
Added
-
$boundaryType
argument added to the following named constructors:Period::fromDay
Period::fromIsoWeek
Period::fromMonth
Period::fromQuarter
Period::fromSemester
Period::fromYear
Period::fromIsoYear
-
Period::subtract
-
Sequence::subtract
Fixed
- None
Deprecated
Period::substract
usePeriod::subtract
insteadSequence::substract
useSequence::subtract
instead
Removed
- None
version 4.8.1
Added
- None
Fixed
Sequence
negative offsets for a object with only onePeriod
instance issue #85
Deprecated
- None
Removed
- None
version 4.8.0
Added
Datepoint
methods returningPeriod
objects supports boundaryTypePeriod::merge
supports empty arguments.Sequence::contains
supports empty arguments.Sequence::unshift
supports empty arguments.Sequence::push
supports empty arguments.Sequence
class supports negative offsets.
Fixed
Duration::adjustedTo
no longer comparesDateInterval
objects to be compatible with PHP7.4+
Deprecated
- None
Removed
- None
version 4.7.1
Added
- None
Fixed
- Improve
Duration::createFromDateString
bug 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::getTotalTimestampInterval
see PR #79Period::substract
see PR #80Sequence::substract
see PR #81
Fixed
- Update
Duration::createFromDateString
to 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::withoutCarryOver
useDuration::adjustedTo
instead
Removed
- None
version 4.5.0
Added
Datepoint::isBefore
Datepoint::bordersOnStart
Datepoint::isStarting
Datepoint::isDuring
Datepoint::isEnding
Datepoint::bordersOnEnd
Datepoint::isAfter
Datepoint::abuts
Duration::create
now supports chronometer formatDuration::withoutCarryOver
Fixed
Period::durationCompare
to take into account Timezone and DST
Deprecated
Duration::__toString
useDuration::format
instead
Removed
- None
version 4.4.0
Added
- Added support for the boundary type
Period::EXCLUDE_START_INCLUDE_END
Period::INCLUDE_START_EXCLUDE_END
Period::EXCLUDE_ALL
Period::INCLUDE_ALL
Period::getBoundaryType
Period::isStartExcluded
Period::isStartIncluded
Period::isEndExcluded
Period::isEndIncluded
Period::withBoundaryType
Period::__construct
adds the$boundaryType
argument;Period::after
adds the$boundaryType
argument;Period::before
adds the$boundaryType
argument;Period::around
adds the$boundaryType
argument;Period::fromDatePeriod
adds the$boundaryType
argument;
- Added missing Allen's Algebra intervals
Period::bordersOnStart
Period::bordersOnEnd
Period::isDuring
Period::isStartedBy
Period::isEndedBy
- Added additional methods to the Sequence class
Sequence::unions
Sequence::intersections
Sequence::gaps
Sequence::boundaries
Sequence::reduce
Fixed
- None
Deprecated
Sequence::getIntersections
useSequence::intersections
insteadSequence::getGaps
useSequence::gaps
insteadSequence::getBoundaries
useSequence::boundaries
instead
Removed
- None
version 4.3.1
version 4.3.0
Added
Sequence
implements theArrayAccess
interface
Fixed
Sequence::map
must preserve offset index after modification.
Deprecated
- None
Removed
- None