2017 © Pedro Peláez
 

library dateclock

Creates current date/time, or stop.

image

kumatch/dateclock

Creates current date/time, or stop.

  • Thursday, August 22, 2013
  • by kumatch
  • Repository
  • 1 Watchers
  • 1 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

DateClock

Creates current date/time, or stop., (*1)

Install

Add "kumatch/dateclock" as a dependency in your project's composer.json file., (*2)

{
  "require": {
    "kumatch/dateclock": "*"
  }
}

And install your dependencies., (*3)

$ composer install

Usage

use Kumatch\DateClock\DateClock;

$clock = new DateClock();
$dateTime = $clock->now();  // Returns current DateTime object.

$clock->stop("2001-01-01 00:00:00"); // or set DateTime object
$dateTime = $clock->now();  // Returns "2001-01-01 00:00:00" DateTime object any time.

$clock->reset();
$dateTime = $clock->now();  // Returns current DateTime object.

License

Licensed under the MIT License., (*4)

Copyright (c) 2013 Yosuke Kumakura, (*5)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:, (*6)

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., (*7)

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*8)

The Versions

22/08 2013

dev-master

9999999-dev https://github.com/kumatch/php-dateclock

Creates current date/time, or stop.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

mock date time

22/08 2013

0.1.1

0.1.1.0 https://github.com/kumatch/php-dateclock

Creates current date/time, or stop.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

mock date time

21/08 2013

0.1.0

0.1.0.0 https://github.com/kumatch/php-dateclock

Creates current date/time, or stop.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

mock date time