2017 © Pedro Peláez
 

library when

image

starx/when

  • Tuesday, March 6, 2018
  • by starx
  • Repository
  • 1 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 77 Forks
  • 0 Open issues
  • 6 Versions
  • 20 % Grown

The README.md

When

Date/Calendar recursion library for PHP 5.3+, (*1)

Build Status, (*2)

Author: Tom Planer, (*3)

About

The second version of When., (*4)

Current Features

Currently this version does everything version 1 was capable of, it also supports byhour, byminute, and bysecond. Please check the unit tests for information about how to use it., (*5)

I will be replacing version 1 with this as soon as I complete the documentation. Until then here are some simple examples:, (*6)

// friday the 13th for the next 5 occurrences
$r = new When();
$r->startDate(new DateTime("19980213T090000"))
  ->freq("monthly")
  ->count(5)
  ->byday("fr")
  ->bymonthday(13)
  ->generateOccurrences();

print_r($r->occurrences);



// friday the 13th for the next 5 occurrences rrule
$r = new When();
$r->startDate(new DateTime("19980213T090000"))
  ->rrule("FREQ=MONTHLY;BYDAY=FR;BYMONTHDAY=13")
  ->generateOccurrences();

print_r($r->occurrences);

License

When is licensed under the MIT License, see LICENSE for specific details., (*7)

The Versions

06/03 2018

v0.1

0.1.0.0

  Sources   Download

06/03 2018

v0.2

0.2.0.0

  Sources   Download

06/03 2018

v0.3

0.3.0.0

  Sources   Download

13/02 2017

dev-master

9999999-dev https://github.com/tplaner/When

Date/Calendar recursion library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

date time datetime recurrence

13/02 2017

v0.4

0.4.0.0 https://github.com/tplaner/When

Date/Calendar recursion library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

date time datetime recurrence

17/06 2014

dev-develop

dev-develop https://github.com/tplaner/When

Date/Calendar recursion library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

date time datetime recurrence