diff --git a/index.php b/index.php index 377d785..6b6d30d 100644 --- a/index.php +++ b/index.php @@ -1,327 +1,323 @@ format('z') + 1; +$weekOfYear = (int) $now->format('W'); +$swatchBeats = (int) floor((($now->getTimestamp() % 86400) / 86.4)); +$moonPhase = (int) floor((($now->getTimestamp() / 2551443) - floor($now->getTimestamp() / 2551443)) * 100); + +$worldCities = [ + ['label' => 'Berlin', 'zone' => 'Europe/Berlin'], + ['label' => 'Tokyo', 'zone' => 'Asia/Tokyo'], + ['label' => 'San Francisco', 'zone' => 'America/Los_Angeles'], + ['label' => 'São Paulo', 'zone' => 'America/Sao_Paulo'], + ['label' => 'Kapstadt', 'zone' => 'Africa/Johannesburg'], +]; + +$worldTimes = array_map( + static function (array $city): array { + $dt = new DateTimeImmutable('now', new DateTimeZone($city['zone'])); + return [ + 'label' => $city['label'], + 'time' => $dt->format('H:i'), + 'date' => $dt->format('d.m.Y'), + 'weekday' => $dt->format('l'), + 'offset' => $dt->format('P'), + ]; + }, + $worldCities +); + +$timeline = []; +for ($i = 1; $i <= 5; $i++) { + $future = $now->modify('+' . $i * 37 . ' minutes'); + $timeline[] = [ + 'label' => "+" . $i * 37 . " min", + 'time' => $future->format('H:i'), + 'micro' => $future->format('s.u'), + 'iso' => $future->format(DateTimeInterface::ATOM), + ]; +} + +$startMillis = (int) round(((float) $now->format('U.u')) * 1000); ?>
-Schiebe deine Maus über das Klangfeld, um Frequenz, Filter und verrückte Modulation zu steuern. Klicke, um Beats zu triggern.
+Ein futuristisches Datums-Dashboard, das terrestrische, kosmische und spekulative Zeitsysteme in einem einzigen, vibrierenden Interface verschmilzt.
+Tipp: Halte die Maustaste gedrückt, bewege dich in Kreisen – und genieße den abgefahrenen Klangteppich!
+