PHPackages                             codemonster-ru/datetime - 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. [Localization &amp; i18n](/categories/localization)
4. /
5. codemonster-ru/datetime

ActiveLibrary[Localization &amp; i18n](/categories/localization)

codemonster-ru/datetime
=======================

Immutable date-time operations, strict parsing, timezone conversion, localization, business calendars, and PSR-20 clocks.

v1.0.0(yesterday)01↑2900%MITPHPPHP &gt;=8.2

Since Jul 31Pushed yesterdayCompare

[ Source](https://github.com/codemonster-ru/datetime)[ Packagist](https://packagist.org/packages/codemonster-ru/datetime)[ Docs](https://github.com/codemonster-ru/datetime)[ RSS](/packages/codemonster-ru-datetime/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

codemonster-ru/datetime
=======================

[](#codemonster-rudatetime)

Important

This repository is read-only.

Development happens in the [Annabel monorepo](https://github.com/codemonster-ru/annabel).

Issues and pull requests should be opened there.

[![Latest Version on Packagist](https://camo.githubusercontent.com/9db964f013343d164f37dfe72309fb51ba797e87b705d90229350c176ed43dd1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64656d6f6e737465722d72752f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/datetime)[![Total Downloads](https://camo.githubusercontent.com/57afc6fd2c0746a7bcf43ee8e406f25f75fa051305c2eb089a62526fff324b70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64656d6f6e737465722d72752f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/datetime)[![License](https://camo.githubusercontent.com/a3528f65de87e50c90c8651921c6ced690b61c8dbcd3ab46b174ba58a992bb5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f636f64656d6f6e737465722d72752f6461746574696d652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/codemonster-ru/datetime)

Immutable date-time operations, timezone conversion, strict parsing, ICU formatting, business calendars, and PSR-20 clocks for PHP applications.

Requirements
------------

[](#requirements)

- PHP 8.2 or newer
- `psr/clock` 1.0
- `ext-intl` with the required ICU locale data for localized and human-readable formatting

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

[](#installation)

```
composer require codemonster-ru/datetime:^1.0
```

Quick start
-----------

[](#quick-start)

```
use Codemonster\DateTime\DateTime;
use Codemonster\DateTime\FrozenClock;

$clock = new FrozenClock(new \DateTimeImmutable('2026-07-31 05:30:00 UTC'));

$publishedAt = DateTime::now($clock, 'Asia/Novokuznetsk')
    ->addDays(2)
    ->subtractHours(3)
    ->toTimezone('UTC');

echo $publishedAt->toIso8601String();
```

All value operations are immutable. Calendar units such as days and months preserve local calendar semantics, while hours, minutes, and seconds represent elapsed time.

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

[](#documentation)

Standalone package documentation: [docs.codemonster.net/datetime](https://docs.codemonster.net/datetime/)

Annabel framework documentation: [docs.codemonster.net/annabel](https://docs.codemonster.net/annabel/)

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

1d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33142935?v=4)[Kirill Kolesnikov](/maintainers/KolesnikovKirill)[@KolesnikovKirill](https://github.com/KolesnikovKirill)

---

Top Contributors

[![KolesnikovKirill](https://avatars.githubusercontent.com/u/33142935?v=4)](https://github.com/KolesnikovKirill "KolesnikovKirill (3 commits)")

---

Tags

phplocalizationclockpsr-20datetimetimedateimmutabletimezonebusiness calendarcodemonsterannabel

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/codemonster-ru-datetime/health.svg)

```
[![Health](https://phpackages.com/badges/codemonster-ru-datetime/health.svg)](https://phpackages.com/packages/codemonster-ru-datetime)
```

###  Alternatives

[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

191716.3M5.8k](/packages/nesbot-carbon)[cakephp/chronos

A simple API extension for DateTime.

1.4k51.0M150](/packages/cakephp-chronos)[punic/punic

PHP-Unicode CLDR

1543.1M33](/packages/punic-punic)[dater/dater

Compact PHP library for working with date/time in different formats &amp; timezones.

14284.8k](/packages/dater-dater)

PHPackages © 2026

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