%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/graphicd/public_html/vebto/vendor/kreait/clock/src/Clock/
Upload File :
Create Path :
Current File : /home/graphicd/public_html/vebto/vendor/kreait/clock/src/Clock/SystemClock.php

<?php

declare(strict_types=1);

namespace Kreait\Clock;

use DateTimeImmutable;
use DateTimeZone;
use Kreait\Clock;
use function date_default_timezone_get;

final class SystemClock implements Clock
{
    /** @var DateTimeZone */
    private $timezone;

    public function __construct(DateTimeZone $timezone = null)
    {
        $this->timezone = $timezone ?: new DateTimeZone(date_default_timezone_get());
    }

    public function now(): DateTimeImmutable
    {
        return new DateTimeImmutable('now', $this->timezone);
    }
}

Zerion Mini Shell 1.0