PHPackages                             xenon/datetime-calc - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xenon/datetime-calc

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

xenon/datetime-calc
===================

This is a date time calculation library for php based on Carbon

v0.0.1-alpha(2y ago)00MITPHPPHP ^8.0

Since Dec 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/arif98741/datetime-calc)[ Packagist](https://packagist.org/packages/xenon/datetime-calc)[ RSS](/packages/xenon-datetime-calc/feed)WikiDiscussions dev Synced today

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

### Breakdown and Splitting Time Range

[](#breakdown-and-splitting-time-range)

```
    $time = new TimeBreakDown(
        startTime: '11:00',
        endTime: '12:00'
    );
    $time->setIntervalMinute(30);
    $time->setBreakDuration(2);
    $time->includeBreaks(1);
    $data = $time->getIntervals(
        breakString: 'is_break',
        startTimeFormat: 'H:i:s',
        endTimeFormat: 'H:i:s'
    );
```

`This will print below time split with 30mins breaks in every stage and it has 2mins break als`

```
Array
(
    [0] => Array
        (
            [start] => 11:00:00
            [end] => 11:30:00
        )

    [1] => Array
        (
            [start] => 11:30:00
            [end] => 11:32:00
            [is_break] => 1
        )

    [2] => Array
        (
            [start] => 11:32:00
            [end] => 12:02:00
        )

    [3] => Array
        (
            [start] => 12:02:00
            [end] => 12:04:00
            [is_break] => 1
        )

)
```

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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

917d ago

### Community

Maintainers

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

---

Top Contributors

[![arif98741](https://avatars.githubusercontent.com/u/17213478?v=4)](https://github.com/arif98741 "arif98741 (2 commits)")

---

Tags

carbondatedate-mangementdatetimephptime

### Embed Badge

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

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

###  Alternatives

[illuminate/support

The Illuminate Support package.

630113.0M41.3k](/packages/illuminate-support)[spatie/holidays

Calculate public holidays

402860.1k2](/packages/spatie-holidays)[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k33](/packages/craftcms-feed-me)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k18](/packages/solspace-craft-freeform)[pimcore/data-importer

Adds a comprehensive import functionality to Pimcore Datahub

46855.5k5](/packages/pimcore-data-importer)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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