xahmedtaha/duration
最新稳定版本:v1.0.1
Composer 安装命令:
composer require xahmedtaha/duration
包简介
A php helper function to express time durations and convert them easily.
README 文档
README
A php helper function to express time durations and convert them easily.
Installation
You can install the package via composer:
composer require xahmedtaha/duration
Usage
echo duration(hours: 2, minutes: 24)->inMilliseconds(); // 8640000 echo duration(days: 12, minutes: 24, seconds: 13, milliseconds: 15)->inSeconds(); // 18733.015 echo duration(days: 3, hours: 16)->inMinutes(); // 19680 echo duration(days: 3, hours: 2, minutes: 24)->inHours(); // 74.4 echo duration(days: 12, hours: 3, minutes: 24, seconds: 13, milliseconds: 15)->inDays(); // 12.141817
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-09-14