lightsource/date-time
Composer 安装命令:
composer require lightsource/date-time
包简介
Helper for working with a standard DateTime class, provide functions like adding DateInterval, etc..
README 文档
README
What is it
Helper for working with a standard DateTime class, provide functions like adding DateInterval, etc..
Installation
composer require lightsource/date-time
Example of usage
use LightSource\DateTime\DATE_TIME;
require_once __DIR__ . '/vendor/autoload.php';
$futureDateTime = DATE_TIME::AddPeriod( DATE_TIME::HOURS, 3 );
$nowTimestamp = DATE_TIME::ToTimestamp();
$isFuture = DATE_TIME::IsFuture( $futureDateTime );
统计信息
- 总下载量: 505
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2020-06-05