ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
UtcClock.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Data\Clock
;
22
23
use
DateTimeImmutable
;
24
use
DateTimeZone
;
25
26
class
UtcClock
implements
ClockInterface
27
{
28
public
function
now
():
DateTimeImmutable
29
{
30
return
new
DateTimeImmutable
(
'now'
,
new
DateTimeZone
(
'UTC'
));
31
}
32
}
ILIAS\Data\Clock\ClockInterface
Definition:
ClockInterface.php:25
DateTimeImmutable
DateTimeZone
ILIAS\Data\Clock
Definition:
ClockFactory.php:21
ILIAS\Data\Clock\UtcClock\now
now()
Definition:
UtcClock.php:28
ILIAS\Data\Clock\UtcClock
Definition:
UtcClock.php:26
components
ILIAS
Data
src
Clock
UtcClock.php
Generated on Sun Aug 31 2025 23:02:44 for ILIAS by
1.8.13 (using
Doxyfile
)