1. Go to this page and download the library: Download khandieyea/timegap 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/ */
khandieyea / timegap example snippets
$gap = Timegap::createThen('a datetime stamp or unix tick that is 10 days from now');
echo "Your birthday is in: ";
echo $gap->output('weeks, days, hours, minutes, seconds', 2);
$gap = new Timegap::createThen('a datetime stamp or tick that is 11 hours away');
echo "Your taxi will arrive in: ";
echo $gap->output('hours, minutes, seconds');
echo "<br />That's in precisely ";
echo $gap->output('seconds');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.