Initial Release

This commit is contained in:
Jérôme Gamez
2021-12-10 16:09:27 +01:00
commit 10c02d2b49
28 changed files with 986 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
require __DIR__.'/../vendor/autoload.php';
use Beste\Clock\SystemClock;
$clock = SystemClock::create();
printf("On your system, the current date and time is %s\n", $clock->now()->format('Y-m-d H:i:s T (P)'));
date_default_timezone_set('America/Los_Angeles');
printf("Now it's %s\n", $clock->now()->format('Y-m-d H:i:s T (P)'));
date_default_timezone_set('Europe/Berlin');
printf("Now it's %s\n", $clock->now()->format('Y-m-d H:i:s T (P)'));