PHP code example of komicho / formattime

1. Go to this page and download the library: Download komicho/formattime 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/ */

    

komicho / formattime example snippets



use komicho\formatTime as ktf;

$time = new ktf([
    'lang' => 'ar'
]);

echo $time -> between(1505466647) . '<br/>';

echo $time -> between(1505466647, 1505466721) . '<br/>';

echo $time -> date_time(1505466647);