PHPackages                             als/dtf - 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. als/dtf

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

als/dtf
=======

Date Component.

1.0.0(9y ago)01331MITOpenEdge ABL

Since Nov 17Pushed 9y agoCompare

[ Source](https://github.com/parser3/als.dtf)[ Packagist](https://packagist.org/packages/als/dtf)[ Docs](https://github.com/parser3/als.dtf)[ RSS](/packages/als-dtf/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (1)

Als/Dtf
=======

[](#alsdtf)

Класс, который предоставляет некоторые дополнительные возможности по оперированию с объектами типа «дата».

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

[](#installation)

```
$ composer require als/dtf
```

Basic Usage
-----------

[](#basic-usage)

Примеры вызова (методы класса вызываются статически).

Напечатать время now в человеческом формате по русски:

```
^Als/Dtf:format[%T %d %h %Y]
```

Напечатать время now в человеческом формате по английски:

```
^Als/Dtf:format[%T %d %h %Y;;${Als/Dtf:ei-locale}]
```

Напечатать дату рождения из переменной `$bithday` в формате %d/%m/%Y:

```
^dtf:format[%d/%m/%Y;$bithday]
```

Описаны методы:

```
###################################
# @create[date]				из строки/даты конструирует объект типа date
# @format[fmt;date;locale]		выводит полученную date, используя форматную строку
# @last-day[date]			возвращает дату последнего дня заданного[текущего] месяца
# @from822[string]			создает дату из переданной строки-даты в формате RFC822
# @to822[date;timezone]			сдвигает дату из текущей TZ в указанную TZ и выводит её в виде строки в формате RFC822
# @setLocale[locale]			задает новое значение locale, возвращая старое
# @resetLocale[]			сбрасывает locale в default
###################################
```

References
----------

[](#references)

- Bugs and feature request are tracked on [GitHub](https://github.com/parser3/als.dtf/issues)

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

3515d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

alspackageparser3dateals

### Embed Badge

![Health badge](/badges/als-dtf/health.svg)

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

###  Alternatives

[rlanvin/php-rrule

Lightweight and fast recurrence rules for PHP (RFC 5545)

70011.9M60](/packages/rlanvin-php-rrule)[knplabs/knp-time-bundle

Making your dates and durations look sensible and descriptive

6339.5M56](/packages/knplabs-knp-time-bundle)[league/period

Time range API for PHP

7335.8M23](/packages/league-period)[morilog/jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in PHP applications, based on Jalali (Shamsi) DateTime class.

9391.3M53](/packages/morilog-jalali)[brick/date-time

Date and time library

3663.8M108](/packages/brick-date-time)[aeon-php/calendar

PHP type safe, immutable calendar library

20810.4M16](/packages/aeon-php-calendar)

PHPackages © 2026

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