PHPackages                             innmind/time-continuum - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. innmind/time-continuum

Abandoned → [innmind/time](/?search=innmind%2Ftime)ArchivedLibrary

innmind/time-continuum
======================

Library to manipulate time

5.1.0(4mo ago)28152.6k—8.6%113MITPHPPHP ~8.4CI passing

Since Oct 11Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/Innmind/TimeContinuum)[ Packagist](https://packagist.org/packages/innmind/time-continuum)[ Docs](http://github.com/Innmind/TimeContinuum)[ RSS](/packages/innmind-time-continuum/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (37)Used By (13)

TimeContinuum
=============

[](#timecontinuum)

[![Build Status](https://github.com/Innmind/TimeContinuum/workflows/CI/badge.svg?branch=master)](https://github.com/Innmind/TimeContinuum/actions?query=workflow%3ACI)[![codecov](https://camo.githubusercontent.com/f27a939d02f9fff83227cbb3a051db70f184101834fe474f7f0ddb8ba29ce2cb/68747470733a2f2f636f6465636f762e696f2f67682f496e6e6d696e642f54696d65436f6e74696e75756d2f6272616e63682f646576656c6f702f67726170682f62616467652e737667)](https://codecov.io/gh/Innmind/TimeContinuum)[![Type Coverage](https://camo.githubusercontent.com/781d7ad9874041e274b7768959c758b7d524db3ceb33a2c66f383b4d37b8e285/68747470733a2f2f73686570686572642e6465762f6769746875622f696e6e6d696e642f74696d65636f6e74696e75756d2f636f7665726167652e737667)](https://shepherd.dev/github/innmind/timecontinuum)

Important

This project has been replaced by [`innmind/time`](https://github.com/Innmind/time)

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.

**All objects are immutable.**

Installation
------------

[](#installation)

```
composer install innmind/time-continuum
```

Usage
-----

[](#usage)

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

$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(),
); // Attempt
```

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.

The method `at()` accepts any string that is allowed by `\DateTimeImmutable`.

Documentation
-------------

[](#documentation)

Full documentation is available at .

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance80

Actively maintained with recent releases

Popularity42

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 99.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~76 days

Total

35

Last Release

121d ago

Major Versions

1.4.1 → 2.0.02019-12-10

2.6.0 → 3.0.02022-01-15

3.4.1 → 4.0.02024-11-28

v3.x-dev → 4.1.02025-03-20

4.2.0 → 5.0.02026-01-11

PHP version history (8 changes)1.0.0PHP ~7.0

1.3.0PHP ~7.2

2.0.0PHP ~7.4

2.6.0PHP ~7.4|~8.0

3.0.0PHP ~8.0

3.2.0PHP ~8.1

3.3.0PHP ~8.2

5.0.0PHP ~8.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/851425?v=4)[Baptiste Langlade](/maintainers/Baptouuuu)[@Baptouuuu](https://github.com/Baptouuuu)

---

Top Contributors

[![Baptouuuu](https://avatars.githubusercontent.com/u/851425?v=4)](https://github.com/Baptouuuu "Baptouuuu (357 commits)")[![einenlum](https://avatars.githubusercontent.com/u/5675200?v=4)](https://github.com/einenlum "einenlum (1 commits)")

---

Tags

clocktimetime

### Embed Badge

![Health badge](/badges/innmind-time-continuum/health.svg)

```
[![Health](https://phpackages.com/badges/innmind-time-continuum/health.svg)](https://phpackages.com/packages/innmind-time-continuum)
```

###  Alternatives

[psr/clock

Common interface for reading the clock.

642332.9M343](/packages/psr-clock)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[symfony/clock

Decouples applications from the system clock

431168.9M205](/packages/symfony-clock)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

177661.4M4.8k](/packages/nesbot-carbon)[azuyalabs/yasumi

The easy PHP Library for calculating holidays

1.1k11.4M26](/packages/azuyalabs-yasumi)[carbonphp/carbon-doctrine-types

Types to use Carbon in Doctrine

218220.4M8](/packages/carbonphp-carbon-doctrine-types)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
