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); ?>
Ein futuristisches Datums-Dashboard, das terrestrische, kosmische und spekulative Zeitsysteme in einem einzigen, vibrierenden Interface verschmilzt.