mirror of
https://github.com/beste/clock.git
synced 2026-08-17 17:47:13 +00:00
Initial Release
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
require __DIR__.'/../vendor/autoload.php';
|
||||
|
||||
use Beste\Clock\LocalizedClock;
|
||||
|
||||
$berlin = LocalizedClock::in('Europe/Berlin');
|
||||
$denver = LocalizedClock::in(new DateTimeZone('America/Denver'));
|
||||
|
||||
printf("Berlin: %s\n", $berlin->now()->format('Y-m-d H:i:s T (P)'));
|
||||
printf("Denver: %s\n", $denver->now()->format('Y-m-d H:i:s T (P)'));
|
||||
Reference in New Issue
Block a user