ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
UtcClock.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Data\Clock;
22
23use DateTimeImmutable;
24use DateTimeZone;
25
26class UtcClock implements ClockInterface
27{
28 public function now(): DateTimeImmutable
29 {
30 return new DateTimeImmutable('now', new DateTimeZone('UTC'));
31 }
32}