PHP code example of thesis / clock
1. Go to this page and download the library: Download thesis/clock 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/ */
thesis / clock example snippets
use Thesis\Time\WallClock;
$clock = new WallClock();
echo $clock->now()->format('c'); // Outputs current time in ISO 8601 format
$clock = new WallClock(new DateTimeZone('Europe/Moscow'));
echo $clock->now()->format('c'); // Outputs Moscow time in ISO 8601 format