PHP's time range API
$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
Period::substract
use Period::subtract
insteadSequence::substract
use Sequence::subtract
insteadSequence
negative offsets for a object with only one Period
instance issue #85
Datepoint
methods returning Period
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.Duration::adjustedTo
no longer compares DateInterval
objects to be compatible with PHP7.4+Duration::createFromDateString
bug fix to take into account DateInterval::createFromDateString
bug fix
Sequence::getTotalTimestampInterval
see PR #79
Period::substract
see PR #80
Sequence::substract
see PR #81
Duration::createFromDateString
to take into account DateInterval::createFromDateString
bug fix
Datepoint::isBefore
Datepoint::bordersOnStart
Datepoint::isStarting
Datepoint::isDuring
Datepoint::isEnding
Datepoint::bordersOnEnd
Datepoint::isAfter
Datepoint::abuts
Duration::create
now supports chronometer formatDuration::withoutCarryOver
Period::durationCompare
to take into account Timezone and DSTDuration::__toString
use Duration::format
insteadPeriod::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;Period::bordersOnStart
Period::bordersOnEnd
Period::isDuring
Period::isStartedBy
Period::isEndedBy
Sequence::unions
Sequence::intersections
Sequence::gaps
Sequence::boundaries
Sequence::reduce
Sequence::getIntersections
use Sequence::intersections
insteadSequence::getGaps
use Sequence::gaps
insteadSequence::getBoundaries
use Sequence::boundaries
instead