You are here

public static function PHPExcel_Calculation_DateTime::_isLeapYear in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php \PHPExcel_Calculation_DateTime::_isLeapYear()

* Identify if a year is a leap year or not * *

Parameters

integer $year The year to test: * @return boolean TRUE if the year is a leap year, otherwise FALSE

4 calls to PHPExcel_Calculation_DateTime::_isLeapYear()
PHPExcel_Calculation_DateTime::YEARFRAC in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
* YEARFRAC * * Calculates the fraction of the year represented by the number of whole days between two dates * (the start_date and the end_date). * Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits…
PHPExcel_Calculation_DateTime::_dateDiff360 in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php
* Return the number of days between two dates based on a 360 day calendar * *
PHPExcel_Calculation_Financial::AMORLINC in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Financial.php
* AMORLINC * * Returns the depreciation for each accounting period. * This function is provided for the French accounting system. If an asset is purchased in * the middle of the accounting period, the prorated depreciation is taken into…
PHPExcel_Calculation_Financial::_daysPerYear in vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/Financial.php
* _daysPerYear * * Returns the number of days in a specified year, as defined by the "basis" value * *

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Calculation/DateTime.php, line 54

Class

PHPExcel_Calculation_DateTime
PHPExcel_Calculation_DateTime

Code

public static function _isLeapYear($year) {
  return $year % 4 == 0 && $year % 100 != 0 || $year % 400 == 0;
}