403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.197.209
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/pregrados/mercadeo/libraries/vendor/lcobucci/jwt/compat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/pregrados/mercadeo/libraries/vendor/lcobucci/jwt/compat/lcobucci-clock-polyfill.php
<?php

namespace Lcobucci\Clock;

use DateTimeImmutable;
use DateTimeZone;
use function interface_exists;

if (! interface_exists(Clock::class)) {
    interface Clock
    {
        /** @return DateTimeImmutable */
        public function now();
    }

    final class FrozenClock implements Clock
    {
        /** @var DateTimeImmutable */
        private $now;

        public function __construct(DateTimeImmutable $now)
        {
            $this->now = $now;
        }

        /** @return self */
        public static function fromUTC()
        {
            return new self(new DateTimeImmutable('now', new DateTimeZone('UTC')));
        }

        public function setTo(DateTimeImmutable $now)
        {
            $this->now = $now;
        }

        public function now()
        {
            return $this->now;
        }
    }

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

        public function __construct(DateTimeZone $timezone)
        {
            $this->timezone = $timezone;
        }

        /** @return self */
        public static function fromUTC()
        {
            return new self(new DateTimeZone('UTC'));
        }

        /** @return self */
        public static function fromSystemTimezone()
        {
            return new self(new DateTimeZone(date_default_timezone_get()));
        }

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

Youez - 2016 - github.com/yon3zu
LinuXploit