Skip to content

@nyamsprod nyamsprod released this Nov 11, 2020 · 1 commit to master since this release

Added

  • Period::fromDatepoint
  • Duration::createFromDateInterval
  • Duration::createFromTimeString
  • Duration::createFromChronoString
  • Duration::createFromSeconds
  • Duration::create supports DateInterval spec strings.
  • Support for PHP8

Fixed

  • Duration::create when using a float will now overflow the results up to the Hour unit.

Deprecated

  • None

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Mar 22, 2020 · 27 commits to master since this release

Added

Fixed

  • Fix issue with Sequence::intersections method.

Deprecated

  • Period::__string replaced by Period::toIso8601

Removed

  • Support for PHP7.1
Assets 2

@nyamsprod nyamsprod released this Sep 2, 2019 · 59 commits to master since this release

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 use Period::subtract instead
  • Sequence::substract use Sequence::subtract instead

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Jul 16, 2019 · 68 commits to master since this release

Added

  • None

Fixed

  • Sequence negative offsets for a object with only one Period instance issue #85

Deprecated

  • None

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Jun 20, 2019 · 76 commits to master since this release

Added

  • Datepoint methods returning Period objects supports boundaryType
  • Period::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 compares DateInterval objects to be compatible with PHP7.4+

Deprecated

  • None

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this May 19, 2019 · 89 commits to master since this release

Added

  • None

Fixed

Deprecated

  • None

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Mar 31, 2019 · 97 commits to master since this release

Added

  • Sequence::getTotalTimestampInterval see PR #79
  • Period::substract see PR #80
  • Sequence::substract see PR #81

Fixed

Deprecated

  • None

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Mar 6, 2019 · 135 commits to master since this release

Added

  • Duration::adjustedTo
  • Internals: added support for PHP7.4 and PHP8.0 in travis.yml

Fixed

  • None

Deprecated

  • Duration::withoutCarryOver use Duration::adjustedTo instead

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Feb 3, 2019 · 142 commits to master since this release

Added

  • Datepoint::isBefore
  • Datepoint::bordersOnStart
  • Datepoint::isStarting
  • Datepoint::isDuring
  • Datepoint::isEnding
  • Datepoint::bordersOnEnd
  • Datepoint::isAfter
  • Datepoint::abuts
  • Duration::create now supports chronometer format
  • Duration::withoutCarryOver

Fixed

  • Period::durationCompare to take into account Timezone and DST

Deprecated

  • Duration::__toString use Duration::format instead

Removed

  • None
Assets 2

@nyamsprod nyamsprod released this Jan 20, 2019 · 170 commits to master since this release

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 use Sequence::intersections instead
  • Sequence::getGaps use Sequence::gaps instead
  • Sequence::getBoundaries use Sequence::boundaries instead

Removed

  • None
Assets 2
You can’t perform that action at this time.