mezon/date-time-utils
Composer 安装命令:
composer require mezon/date-time-utils
包简介
Small date/time utilities
README 文档
README
Installation
Just print
composer require mezon/date-time-utils
Locale setup
You can specify necessary locale by setting up the DateTimeUtils::$locale variable. For example:
DateTimeUtils::$locale = 'en';
Methods
Method returns true if the passed date is today
DateTimeUtils::isToday(string $date):bool
Method returns true if the passed date was yesterday
DateTimeUtils::isYesterday(string $date):bool
Method returns day and literal representation of month from the date. For example the string "1 of july" will be returned for the date '2020-07-01'
DateTimeUtils::dayMonth(string $date): string
统计信息
- 总下载量: 3.05k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-25