tokiya / timeish
PHP library that can handle more than 24 hours.
v1.0.0
2023-12-05 03:32 UTC
Requires
- php: ^8.0
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^9.6
- symfony/var-dumper: ^5.4
README
Timeish is a library that can handle values beyond 24 as if they were time.
Installation
Install the latest version with
$ composer require tokiya/timeish
Example
$timeish = new Timeish(24, 0); echo $timeish->toString(); // 24:00
The concept of time is not forgotten.
$timeish = new Timeish(0, 59); $timeish->addMinute(); echo $timeish->toString(); // 01:00
Timeish will make you happy.