. namespace core; /** * Standard system clock implementation. * * @package core * @copyright 2024 Andrew Lyons * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class system_clock implements clock { public function now(): \DateTimeImmutable { return new \DateTimeImmutable(); } public function time(): int { return $this->now()->getTimestamp(); } }