bugrov / date
Вывод даты с русским месяцем
dev-main
2022-10-14 22:11 UTC
Requires
- ext-mbstring: *
This package is auto-updated.
Last update: 2025-05-15 03:42:54 UTC
README
Install
composer require bugrov/date
This will add the class Time.php and trait TimeTrait.php to the src/ folder
Usage
- add generated autoload.php in your current file
- create class instanse:
$date = new Bugrov\Web\Time();
- get current day:
echo $date->getCurrentDay();
- get current month in russian interpretation:
echo $date->getCurrentMonth();
- get current year:
echo $date->getCurrentYear();
- get full date (day, month, year) in russian interpretation:
echo $date->getCurrentDateRussian();