PHP code example of morebec / orkestra-datetime
1. Go to this page and download the library: Download morebec/orkestra-datetime 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/ */
morebec / orkestra-datetime example snippets
Morebec\Orkestra\DateTime\ClockInterface;
use Morebec\Orkestra\DateTime\SystemClock;
/** @var ClockInterface $clock */
$clock = new SystemClock();
printf("Now: %s", $clock->now());