ILIAS
eassessment Revision 61809
|
Static Public Member Functions | |
static | _isLeapYear ($year) |
static | _getDateValue ($dateValue) |
_getDateValue | |
static | DATETIMENOW () |
DATETIMENOW. | |
static | DATENOW () |
DATENOW. | |
static | DATE ($year=0, $month=1, $day=1) |
DATE. | |
static | TIME ($hour=0, $minute=0, $second=0) |
TIME. | |
static | DATEVALUE ($dateValue=1) |
DATEVALUE. | |
static | TIMEVALUE ($timeValue) |
TIMEVALUE. | |
static | DATEDIF ($startDate=0, $endDate=0, $unit= 'D') |
DATEDIF. | |
static | DAYS360 ($startDate=0, $endDate=0, $method=false) |
DAYS360. | |
static | YEARFRAC ($startDate=0, $endDate=0, $method=0) |
YEARFRAC. | |
static | NETWORKDAYS ($startDate, $endDate) |
NETWORKDAYS. | |
static | WORKDAY ($startDate, $endDays) |
WORKDAY. | |
static | DAYOFMONTH ($dateValue=1) |
DAYOFMONTH. | |
static | DAYOFWEEK ($dateValue=1, $style=1) |
DAYOFWEEK. | |
static | WEEKOFYEAR ($dateValue=1, $method=1) |
WEEKOFYEAR. | |
static | MONTHOFYEAR ($dateValue=1) |
MONTHOFYEAR. | |
static | YEAR ($dateValue=1) |
YEAR. | |
static | HOUROFDAY ($timeValue=0) |
HOUROFDAY. | |
static | MINUTEOFHOUR ($timeValue=0) |
MINUTEOFHOUR. | |
static | SECONDOFMINUTE ($timeValue=0) |
SECONDOFMINUTE. | |
static | EDATE ($dateValue=1, $adjustmentMonths=0) |
EDATE. | |
static | EOMONTH ($dateValue=1, $adjustmentMonths=0) |
EOMONTH. |
Static Private Member Functions | |
static | _dateDiff360 ($startDay, $startMonth, $startYear, $endDay, $endMonth, $endYear, $methodUS) |
static | _getTimeValue ($timeValue) |
_getTimeValue | |
static | _adjustDateByMonths ($dateValue=0, $adjustmentMonths=0) |
Definition at line 46 of file DateTime.php.
|
staticprivate |
Definition at line 116 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject().
Referenced by EDATE(), and EOMONTH().
|
staticprivate |
Definition at line 53 of file DateTime.php.
Referenced by DAYS360().
|
static |
_getDateValue
string | $dateValue |
Definition at line 83 of file DateTime.php.
References PHPExcel_Shared_Date\$dateTimeObjectType, PHPExcel_Calculation_Functions\COMPATIBILITY_GNUMERIC, DATEVALUE(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Shared_Date\PHPToExcel(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\setReturnDateType(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\COUPNCD(), PHPExcel_Calculation_Financial\COUPNUM(), PHPExcel_Calculation_Financial\COUPPCD(), PHPExcel_Calculation_Financial\PRICE(), PHPExcel_Calculation_Financial\TBILLEQ(), PHPExcel_Calculation_Financial\TBILLPRICE(), and PHPExcel_Calculation_Financial\TBILLYIELD().
|
staticprivate |
_getTimeValue
string | $timeValue |
Definition at line 107 of file DateTime.php.
References PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\setReturnDateType(), and TIMEVALUE().
Referenced by HOUROFDAY(), MINUTEOFHOUR(), and SECONDOFMINUTE().
|
static |
Definition at line 48 of file DateTime.php.
Referenced by PHPExcel_Calculation_Financial\_daysPerYear(), PHPExcel_Calculation_Financial\AMORLINC(), and YEARFRAC().
|
static |
DATE.
long | $year | |
long | $month | |
long | $day |
Definition at line 206 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Shared_Date\FormattedPHPToExcel(), PHPExcel_Shared_Date\getExcelCalendar(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\NaN(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, and PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT.
|
static |
DATEDIF.
long | $startDate | Excel date serial value or a standard date string |
long | $endDate | Excel date serial value or a standard date string |
string | $unit |
Definition at line 468 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by PHPExcel_Calculation_Financial\XNPV(), and YEARFRAC().
|
static |
DATENOW.
Definition at line 175 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Shared_Date\PHPToExcel(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, and PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT.
|
static |
DATETIMENOW.
Definition at line 148 of file DateTime.php.
References PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Shared_Date\PHPToExcel(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, and PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT.
|
static |
DATEVALUE.
string | $dateValue |
Definition at line 344 of file DateTime.php.
References $t, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Shared_Date\FormattedPHPToExcel(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
Referenced by _getDateValue(), PHPExcel_Shared_Date\stringToExcel(), and PHPExcel_Calculation_TextData\TEXTFORMAT().
|
static |
DAYOFMONTH.
long | $dateValue | Excel date serial value or a standard date string |
Definition at line 854 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by YEARFRAC().
|
static |
DAYOFWEEK.
long | $dateValue | Excel date serial value or a standard date string |
Definition at line 878 of file DateTime.php.
References PHPExcel_Calculation_Functions\COMPATIBILITY_EXCEL, PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by NETWORKDAYS(), and WORKDAY().
|
static |
DAYS360.
long | $startDate | Excel date serial value or a standard date string |
long | $endDate | Excel date serial value or a standard date string |
boolean | $method | US or European Method |
Definition at line 563 of file DateTime.php.
References _dateDiff360(), PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by YEARFRAC().
|
static |
EDATE.
Returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date). Use EDATE to calculate maturity dates or due dates that fall on the same day of the month as the date of issue.
long | $dateValue | Excel date serial value or a standard date string |
int | $adjustmentMonths | Number of months to adjust by |
Definition at line 1108 of file DateTime.php.
References _adjustDateByMonths(), PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Shared_Date\PHPToExcel(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
|
static |
EOMONTH.
Returns the serial number for the last day of the month that is the indicated number of months before or after start_date. Use EOMONTH to calculate maturity dates or due dates that fall on the last day of the month.
long | $dateValue | Excel date serial value or a standard date string |
int | $adjustmentMonths | Number of months to adjust by |
Definition at line 1147 of file DateTime.php.
References _adjustDateByMonths(), PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Shared_Date\PHPToExcel(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
|
static |
HOUROFDAY.
mixed | $timeValue | Excel time serial value or a standard time string |
Definition at line 1005 of file DateTime.php.
References _getTimeValue(), PHPExcel_Calculation_Functions\COMPATIBILITY_GNUMERIC, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
|
static |
MINUTEOFHOUR.
long | $timeValue | Excel time serial value or a standard time string |
Definition at line 1038 of file DateTime.php.
References _getTimeValue(), PHPExcel_Calculation_Functions\COMPATIBILITY_GNUMERIC, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
|
static |
MONTHOFYEAR.
long | $dateValue | Excel date serial value or a standard date string |
Definition at line 961 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by YEARFRAC().
|
static |
NETWORKDAYS.
mixed | Start date |
mixed | End date |
array | of mixed Optional Date Series |
Definition at line 691 of file DateTime.php.
References DAYOFWEEK(), PHPExcel_Calculation_Functions\flattenArray(), PHPExcel_Calculation_Functions\flattenSingleValue(), and PHPExcel_Calculation_Functions\VALUE().
|
static |
SECONDOFMINUTE.
long | $timeValue | Excel time serial value or a standard time string |
Definition at line 1071 of file DateTime.php.
References _getTimeValue(), PHPExcel_Calculation_Functions\COMPATIBILITY_GNUMERIC, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
|
static |
TIME.
long | $hour | |
long | $minute | |
long | $second |
Definition at line 265 of file DateTime.php.
References PHPExcel_Shared_Date\CALENDAR_WINDOWS_1900, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Shared_Date\FormattedPHPToExcel(), PHPExcel_Shared_Date\getExcelCalendar(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\NaN(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
|
static |
TIMEVALUE.
string | $timeValue |
Definition at line 432 of file DateTime.php.
References PHPExcel_Calculation_Functions\COMPATIBILITY_OPENOFFICE, PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Shared_Date\FormattedPHPToExcel(), PHPExcel_Calculation_Functions\getCompatibilityMode(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
Referenced by _getTimeValue(), and PHPExcel_Shared_Date\stringToExcel().
|
static |
WEEKOFYEAR.
long | $dateValue | Excel date serial value or a standard date string |
boolean | $method | Week begins on Sunday or Monday |
Definition at line 925 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
|
static |
WORKDAY.
mixed | Start date |
mixed | number of days for adjustment |
array | of mixed Optional Date Series |
Definition at line 756 of file DateTime.php.
References DAYOFWEEK(), PHPExcel_Shared_Date\ExcelToPHP(), PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenArray(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\getReturnDateType(), PHPExcel_Calculation_Functions\RETURNDATE_EXCEL, PHPExcel_Calculation_Functions\RETURNDATE_PHP_NUMERIC, PHPExcel_Calculation_Functions\RETURNDATE_PHP_OBJECT, and PHPExcel_Calculation_Functions\VALUE().
|
static |
YEAR.
long | $dateValue | Excel date serial value or a standard date string |
Definition at line 983 of file DateTime.php.
References PHPExcel_Shared_Date\ExcelToPHPObject(), PHPExcel_Calculation_Functions\flattenSingleValue(), PHPExcel_Calculation_Functions\NaN(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by PHPExcel_Calculation_Financial\AMORLINC(), PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\PRICEMAT(), YEARFRAC(), PHPExcel_Calculation_Financial\YIELDDISC(), and PHPExcel_Calculation_Financial\YIELDMAT().
|
static |
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 or obligations to assign to a specific term.
mixed | $startDate | Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string |
mixed | $endDate | Excel date serial value (float), PHP date timestamp (integer) or date object, or a standard date string |
integer | $method | Method used for the calculation 0 or omitted US (NASD) 30/360 1 Actual/actual 2 Actual/360 3 Actual/365 4 European 30/360 |
Definition at line 606 of file DateTime.php.
References _isLeapYear(), DATEDIF(), DAYOFMONTH(), DAYS360(), PHPExcel_Calculation_Functions\flattenSingleValue(), MONTHOFYEAR(), PHPExcel_Calculation_Functions\VALUE(), and YEAR().
Referenced by PHPExcel_Calculation_Financial\ACCRINT(), PHPExcel_Calculation_Financial\ACCRINTM(), PHPExcel_Calculation_Financial\AMORDEGRC(), PHPExcel_Calculation_Financial\AMORLINC(), PHPExcel_Calculation_Financial\COUPDAYBS(), PHPExcel_Calculation_Financial\COUPDAYSNC(), PHPExcel_Calculation_Financial\COUPNUM(), PHPExcel_Calculation_Financial\DISC(), PHPExcel_Calculation_Financial\INTRATE(), PHPExcel_Calculation_Financial\PRICEDISC(), PHPExcel_Calculation_Financial\PRICEMAT(), PHPExcel_Calculation_Financial\RECEIVED(), PHPExcel_Calculation_Financial\TBILLEQ(), PHPExcel_Calculation_Financial\TBILLPRICE(), PHPExcel_Calculation_Financial\TBILLYIELD(), PHPExcel_Calculation_Financial\YIELDDISC(), and PHPExcel_Calculation_Financial\YIELDMAT().