tokiya/timeish

PHP library that can handle more than 24 hours.

v1.0.0 2023-12-05 03:32 UTC

This package is auto-updated.

Last update: 2024-09-05 05:07:47 UTC


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.