2017 © Pedro Peláez
 

library clock

Date & time manupulation library for PHP

image

alexeyshockov/clock

Date & time manupulation library for PHP

  • Thursday, May 9, 2013
  • by alexeyshockov
  • Repository
  • 2 Watchers
  • 1 Stars
  • 97 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 5 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Clock Build Status

Goal

Convenient and safe way to work with date & time in PHP., (*1)

Benefits

  • Rich, easy to understand (and remember) method set.
  • Functional idioms:
    • immutable collections (safest and usable for most cases).

Installation

Clock currently may be installed as submodule for your Git project:, (*2)

``` bash git submodule add git://github.com/alexeyshockov/clock.git vendor/clock, (*3)


or throught [Composer](https://github.com/composer/composer): ``` json { "require": { "alexeyshockov/clock": "dev-master" } }

Usage

Some examples:, (*4)

``` php <?php, (*5)

$period = new \DatePeriod('R5/2008-03-01T13:00:00Z/P1Y2M10DT2H30M');, (*6)

// Converting period to collection of dates with Colada. $dates = to_collection($period);, (*7)

$formattedDates = $dates->mapBy(x()->format(\DateTime::ATOM)); ```, (*8)

The Versions

09/05 2013

dev-master

9999999-dev http://github.com/alexeyshockov/clock

Date & time manupulation library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

The Development Requires

date time

09/05 2013

v0.1.0

0.1.0.0 http://github.com/alexeyshockov/clock

Date & time manupulation library for PHP

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

date time