PHPackages                             blacktools/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. blacktools/datetime

ActiveLibrary

blacktools/datetime
===================

A set of functions to work with date and time in PHP, it contains a powerful schedule maker.

1.0.0(8y ago)226MITPHPPHP &gt;=5.3.0

Since May 30Pushed 8y agoCompare

[ Source](https://github.com/henriquefernandez/PhpDateTime)[ Packagist](https://packagist.org/packages/blacktools/datetime)[ Docs](https://github.com/henriquefernandez/PhpDateTime)[ RSS](/packages/blacktools-datetime/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)DependenciesVersions (2)Used By (0)

Install
-------

[](#install)

Via Composer

```
$ composer require blacktools/datetime
```

Usage
-----

[](#usage)

```
require 'vendor/autoload.php';

use Blacktools\DateTime\TimeMachine;

var_dump(TimeMachine::interval('00:00:00','24:00:00'));

/*
  array(24) {
  [0] =>
  string(8) "00:00:00"
  [1] =>
  string(8) "01:00:00"
  [2] =>
  string(8) "02:00:00"
  [3] =>
  string(8) "03:00:00"
  [4] =>
  string(8) "04:00:00"
  [5] =>
  string(8) "05:00:00"
  [6] =>
  string(8) "06:00:00"
  [7] =>
  string(8) "07:00:00"
  ...
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Henrique Fernandez Teixeira](https://github.com/:author_username)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

3272d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a96ac8b1d1b9699bb80106bf198a0251808300f89f78fa4e9f2e9ca8ad7f5fe8?d=identicon)[henriquefernandez](/maintainers/henriquefernandez)

---

Top Contributors

[![henrique-ft](https://avatars.githubusercontent.com/u/20933699?v=4)](https://github.com/henrique-ft "henrique-ft (3 commits)")

---

Tags

timedateschedulefunctionseasyhourblacktools

### Embed Badge

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

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

###  Alternatives

[florianv/business

DateTime calculations in business hours

359775.9k1](/packages/florianv-business)[league/period

Time range API for PHP

7335.4M21](/packages/league-period)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[jenssegers/date

A date library to help you work with dates in different languages

1.8k11.2M80](/packages/jenssegers-date)[nesbot/carbon

An API extension for DateTime that supports 281 different languages.

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

The easy PHP Library for calculating holidays

1.1k11.4M26](/packages/azuyalabs-yasumi)

PHPackages © 2026

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