2017 © Pedro Peláez
 

library time-continuum

Library to manipulate time

image

innmind/time-continuum

Library to manipulate time

  • Saturday, April 28, 2018
  • by Baptouuuu
  • Repository
  • 1 Watchers
  • 5 Stars
  • 2,139 Installations
  • PHP
  • 13 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 9 % Grown

The README.md

TimeContinuum

Build Status codecov Type Coverage, (*1)

This library allows you to handle time down to the millisecond. The point was to also be explicit for every component of dates, this is why every php magic strings have been converted into objects., (*2)

All objects are immutable., (*3)

Installation

composer install innmind/time-continuum

Usage

use Innmind\TimeContinuum\{
    Clock,
    PointInTime,
    Format,
};
use Innmind\Immutable\Maybe;

$clock = Clock::live();
$now = $clock->now(); // return an instance of PointInTime
echo $now->toString(); // 2016-10-11T12:17:30.123456+02:00

$epoch = $clock->at(
    '1970-01-01T00:00:00.000000+00:00',
    Format::iso8601(),
); // Maybe<PointInTime>

Here we reference 2 points in time, the first is the exact moment we call now down to the microsecond and the second one is the epoch time., (*4)

The method at() accepts any string that is allowed by \DateTimeImmutable., (*5)

Documentation

Full documentation is available at https://innmind.org/TimeContinuum/., (*6)

The Versions

28/04 2018

dev-master

9999999-dev http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

28/04 2018

1.2.0

1.2.0.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

28/04 2018

dev-develop

dev-develop http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

04/03 2018

1.1.1

1.1.1.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

23/11 2017

1.1.0

1.1.0.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

10/09 2017

1.0.2

1.0.2.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

20/08 2017

1.0.1

1.0.1.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

time

11/10 2016

1.0.0

1.0.0.0 http://github.com/Innmind/TimeContinuum

Library to manipulate time

  Sources   Download

MIT

The Requires

  • php ~7.0

 

time