PHPackages                             flextype-components/date - 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. flextype-components/date

ActiveLibrary

flextype-components/date
========================

Date component is a set of methods to help with the manipulation of dates.

v1.1.0(6y ago)04.7kMITPHPPHP ^7.1.3

Since Apr 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/flextype-components/date)[ Packagist](https://packagist.org/packages/flextype-components/date)[ Docs](https://github.com/flextype-components/date)[ RSS](/packages/flextype-components-date/feed)WikiDiscussions master Synced 2mo ago

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

Date Component
==============

[](#date-component)

[![version](https://camo.githubusercontent.com/badf899263d843fdca90748679f0c1ad11a6798395296c6214749181e1d6ea50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265 "Version")](https://camo.githubusercontent.com/badf899263d843fdca90748679f0c1ad11a6798395296c6214749181e1d6ea50/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e302d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)[![MIT License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/flextype-components/date/blob/master/LICENSE)

Date component is a set of methods to help with the manipulation of dates.

### Installation

[](#installation)

```
composer require flextype-components/date

```

### Usage

[](#usage)

```
use Flextype\Component\Date\Date;
```

Get format date

```
echo Date::format($date, 'j.n.Y');
```

Get number of seconds in a minute, incrementing by a step.

```
$seconds = Date::seconds();
```

Get number of minutes in a hour, incrementing by a step.

```
$minutes = Date::minutes();
```

Get number of hours, incrementing by a step.

```
$hours = Date::hours();
```

Get number of months.

```
$months = Date::months();
```

Get number of days.

```
$months = Date::days();
```

Returns the number of days in the requested month

```
$days = Date::daysInMonth(1);
```

Get number of years.

```
$years = Date::years();
```

Get current season name

```
echo Date::season();
```

Get today date

```
echo Date::today();
```

Get yesterday date

```
echo Date::yesterday();
```

Get tomorrow date

```
echo Date::tomorrow();
```

Converts a UNIX timestamp to DOS format.

```
$dos = Date::unix2dos($unix);
```

Converts a DOS timestamp to UNIX format.

```
$unix = Date::dos2unix($dos);
```

Get Time zones

```
$tz = Date::timezones();
```

License
-------

[](#license)

See [LICENSE](https://github.com/flextype-components/date/blob/master/LICENSE)

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Every ~509 days

Total

2

Last Release

2438d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/477114?v=4)[Sergey Romanenko](/maintainers/Awilum)[@Awilum](https://github.com/Awilum)

---

Top Contributors

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

---

Tags

componentdateflextypeflextype-componentphptimedate

### Embed Badge

![Health badge](/badges/flextype-components-date/health.svg)

```
[![Health](https://phpackages.com/badges/flextype-components-date/health.svg)](https://phpackages.com/packages/flextype-components-date)
```

###  Alternatives

[moment/moment

Parse, validate, manipulate, and display dates in JavaScript.

48.1k2.1M37](/packages/moment-moment)[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)[carbonphp/carbon-doctrine-types

Types to use Carbon in Doctrine

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

PHPackages © 2026

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