2017 © Pedro Peláez
 

library date-utils

Utility for date spans

image

clippings/date-utils

Utility for date spans

  • Thursday, December 21, 2017
  • by hkdobrev
  • Repository
  • 12 Watchers
  • 2 Stars
  • 33,445 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 11 Versions
  • 15 % Grown

The README.md

Date Utils

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version, (*1)

Utility for days and date spans, (*2)

Installation

Install via composer, (*3)

composer require clippings/date-utils

Usage

$span = new DaysSpan(new Days(20), new Days(40));
$start = new DateTime('today');
$dates = $span->toDateTimeSpan($start);

echo $dates->humanize();

// For week days
$span = new WeekDaysSpan(new WeekDays(20), new WeekDays(40));
$start = new DateTime('today');
$dates = $span->toDateTimeSpan($start);

// For business with support of lists of holidays

$holidays = new Holidays([
    new DateTime('<Holiday 1>'),
    new DateTime('<Holiday 2>'),
]);

$span = new BusinessDaysSpan(new BusinessDays(20, $holidays), new BusinessDays(40, $holidays));
$start = new DateTime('today');
$dates = $span->toDateTimeSpan($start);

License

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin, (*4)

Under BSD-3-Clause license, read LICENSE file., (*5)

The Versions

21/12 2017

dev-master

9999999-dev

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7

 

The Development Requires

21/12 2017

0.2.6

0.2.6.0

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7

 

The Development Requires

20/12 2017

dev-add-business-days-in-period-calculation

dev-add-business-days-in-period-calculation

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php ^7

 

The Development Requires

04/03 2017

0.2.5

0.2.5.0

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

19/07 2016

0.2.4

0.2.4.0

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

10/12 2015

0.2.3

0.2.3.0

Utility for date spans

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.5

 

02/12 2015

0.2.2

0.2.2.0

Utility for date spans

  Sources   Download

BSD-3-Clause

02/12 2015

0.2.1

0.2.1.0

Utility for date spans

  Sources   Download

BSD-3-Clause

02/12 2015

0.2.0

0.2.0.0

Utility for date spans

  Sources   Download

BSD-3-Clause

21/07 2015

0.1.1

0.1.1.0

Utility for date spans

  Sources   Download

BSD-3-Clause

24/06 2015

0.1.0

0.1.0.0

Utility for date spans

  Sources   Download

BSD-3-Clause