thesis/clock
最新稳定版本:0.1.0
Composer 安装命令:
composer require thesis/clock
包简介
Thesis Clock
README 文档
README
Installation
composer require thesis/clock
Usage
WallClock is a basic implementation of the Psr\Clock\ClockInterface that returns the current wall-clock time.
use Thesis\Time\WallClock; $clock = new WallClock(); echo $clock->now()->format('c'); // Outputs current time in ISO 8601 format
Or with a specific timezone:
$clock = new WallClock(new DateTimeZone('Europe/Moscow')); echo $clock->now()->format('c'); // Outputs Moscow time in ISO 8601 format
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-05-09