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); ?> - <?= htmlspecialchars($title, ENT_QUOTES, 'UTF-8'); ?> + Hypermodern Temporal Hub + + + -

-

Schiebe deine Maus über das Klangfeld, um Frequenz, Filter und verrückte Modulation zu steuern. Klicke, um Beats zu triggern.

+
+

Hypermodern Temporal Hub

+

Ein futuristisches Datums-Dashboard, das terrestrische, kosmische und spekulative Zeitsysteme in einem einzigen, vibrierenden Interface verschmilzt.

+
-
- -
-
-
Freq-- Hz
-
Reso--
-
Noise--
+
+
+

JETZT

+
format('H:i:s'), ENT_QUOTES, 'UTF-8'); ?>
+
Tag · Woche · ISO format(DateTimeInterface::ATOM), ENT_QUOTES, 'UTF-8'); ?>
+
µformat('u'); ?>
+
+
+ Swatch Beats + @ +
+
+ Gravitationsphase + % +
+
+ Unix-Epoche + getTimestamp(), 0, ',', '.'); ?> +
-
+ -

Tipp: Halte die Maustaste gedrückt, bewege dich in Kreisen – und genieße den abgefahrenen Klangteppich!

+
+

WELTWELLEN

+
+ +
+
+ + · +
+
+ + +
+
+ +
+
- + tick(); +