PHP code example of tokiya / timeish
1. Go to this page and download the library: Download tokiya/timeish library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
tokiya / timeish example snippets
$timeish = new Timeish(24, 0);
echo $timeish->toString(); // 24:00
$timeish = new Timeish(0, 59);
$timeish->addMinute();
echo $timeish->toString(); // 01:00