dark-calendar/solar-history-library-php

v2.0 2024-07-06 14:31 UTC

This package is auto-updated.

Last update: 2024-09-06 14:56:08 UTC


README

PHP的日期库

安装

运行命令

composer require dark-calendar/solar-history-library-php

使用

创建新对象

$dateSolar = new DarkCalendar\SolarDate\SolarDateService();

或使用外观

\DarkCalendar\SolarDate\SolarDate::class;

在外观中,您可以静态访问类方法。

方法

日期

array|string date($format, string|int $timestamp = '', string|int $none = '', string $time_zone = 'Asia/Tehran', string $tr_num = 'fa')