PHP code example of cjrasmussen / time
1. Go to this page and download the library: Download cjrasmussen/time 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/ */
cjrasmussen / time example snippets
use cjrasmussen\Time\Convert;
$time = Convert::secondsToTime(153);
echo $time; // 00:02:33
$seconds = Convert::timeToSeconds('01:45:32');
echo $seconds; // 6332