ILIAS
Release_4_0_x_branch Revision 61816
|
Static Public Member Functions | |
static | setExcelCalendar ($baseDate) |
Set the Excel calendar (Windows 1900 or Mac 1904) | |
static | getExcelCalendar () |
Return the Excel calendar (Windows 1900 or Mac 1904) | |
static | ExcelToPHP ($dateValue=0) |
Convert a date from Excel to PHP. | |
static | ExcelToPHPObject ($dateValue=0) |
Convert a date from Excel to a PHP Date/Time object. | |
static | PHPToExcel ($dateValue=0) |
Convert a date from PHP to Excel. | |
static | FormattedPHPToExcel ($year, $month, $day, $hours=0, $minutes=0, $seconds=0) |
FormattedPHPToExcel. | |
static | isDateTime (PHPExcel_Cell $pCell) |
Is a given cell a date/time? | |
static | isDateTimeFormat (PHPExcel_Style_NumberFormat $pFormat) |
Is a given number format a date/time? | |
static | isDateTimeFormatCode ($pFormatCode= '') |
Is a given number format code a date/time? |
Data Fields | |
const | CALENDAR_WINDOWS_1900 = 1900 |
constants | |
const | CALENDAR_MAC_1904 = 1904 |
Static Public Attributes | |
static | $dateTimeObjectType = 'DateTime' |
Static Private Attributes | |
static | $ExcelBaseDate = self::CALENDAR_WINDOWS_1900 |
static | $possibleDateFormatCharacters = 'ymdHis' |
|
static |
Convert a date from Excel to PHP.
long | $dateValue | Excel date/time value |
Definition at line 95 of file Date.php.
Referenced by PHPExcel_Calculation_Functions\DATE(), PHPExcel_Calculation_Functions\DATENOW(), PHPExcel_Calculation_Functions\DATEVALUE(), PHPExcel_Calculation_Functions\EDATE(), PHPExcel_Calculation_Functions\EOMONTH(), ExcelToPHPObject(), PHPExcel_Calculation_Functions\HOUROFDAY(), PHPExcel_Calculation_Functions\MINUTEOFHOUR(), PHPExcel_Calculation_Functions\SECONDOFMINUTE(), PHPExcel_Calculation_Functions\TIME(), PHPExcel_Calculation_Functions\TIMEVALUE(), PHPExcel_Style_NumberFormat\toFormattedString(), and PHPExcel_Calculation_Functions\WORKDAY().
|
static |
Convert a date from Excel to a PHP Date/Time object.
long | $dateValue | Excel date/time value |
Definition at line 128 of file Date.php.
References ExcelToPHP().
Referenced by PHPExcel_Calculation_Functions\_adjustDateByMonths(), PHPExcel_Calculation_Functions\DATE(), PHPExcel_Calculation_Functions\DATEDIF(), PHPExcel_Calculation_Functions\DATENOW(), PHPExcel_Calculation_Functions\DAYOFMONTH(), PHPExcel_Calculation_Functions\DAYOFWEEK(), PHPExcel_Calculation_Functions\DAYS360(), PHPExcel_Calculation_Functions\MONTHOFYEAR(), PHPExcel_Calculation_Functions\WEEKOFYEAR(), PHPExcel_Calculation_Functions\WORKDAY(), and PHPExcel_Calculation_Functions\YEAR().
|
static |
FormattedPHPToExcel.
long | $year | |
long | $month | |
long | $day | |
long | $hours | |
long | $minutes | |
long | $seconds |
Definition at line 178 of file Date.php.
Referenced by PHPExcel_Calculation_Functions\DATE(), PHPExcel_Calculation_Functions\DATEVALUE(), PHPToExcel(), PHPExcel_Calculation_Functions\TIME(), and PHPExcel_Calculation_Functions\TIMEVALUE().
|
static |
Return the Excel calendar (Windows 1900 or Mac 1904)
Definition at line 84 of file Date.php.
References $ExcelBaseDate.
Referenced by PHPExcel_Writer_Excel5_Workbook\_storeDatemode(), PHPExcel_Writer_Excel2007_Workbook\_writeWorkbookPr(), PHPExcel_Calculation_Functions\DATE(), and PHPExcel_Calculation_Functions\TIME().
|
static |
Is a given cell a date/time?
PHPExcel_Cell | $pCell |
Definition at line 217 of file Date.php.
References PHPExcel_Cell\getCoordinate(), PHPExcel_Cell\getParent(), and isDateTimeFormat().
|
static |
Is a given number format a date/time?
PHPExcel_Style_NumberFormat | $pFormat |
Definition at line 228 of file Date.php.
References PHPExcel_Style_NumberFormat\getFormatCode(), and isDateTimeFormatCode().
Referenced by isDateTime().
|
static |
Is a given number format code a date/time?
string | $pFormatCode |
Definition at line 241 of file Date.php.
References PHPExcel_Style_NumberFormat\FORMAT_DATE_DATETIME, PHPExcel_Style_NumberFormat\FORMAT_DATE_DDMMYYYY, PHPExcel_Style_NumberFormat\FORMAT_DATE_DMMINUS, PHPExcel_Style_NumberFormat\FORMAT_DATE_DMYMINUS, PHPExcel_Style_NumberFormat\FORMAT_DATE_DMYSLASH, PHPExcel_Style_NumberFormat\FORMAT_DATE_MYMINUS, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME1, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME2, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME3, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME4, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME5, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME6, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME7, PHPExcel_Style_NumberFormat\FORMAT_DATE_TIME8, PHPExcel_Style_NumberFormat\FORMAT_DATE_XLSX14, PHPExcel_Style_NumberFormat\FORMAT_DATE_XLSX15, PHPExcel_Style_NumberFormat\FORMAT_DATE_XLSX16, PHPExcel_Style_NumberFormat\FORMAT_DATE_XLSX17, PHPExcel_Style_NumberFormat\FORMAT_DATE_XLSX22, PHPExcel_Style_NumberFormat\FORMAT_DATE_YYYYMMDD, PHPExcel_Style_NumberFormat\FORMAT_DATE_YYYYMMDD2, and PHPExcel_Style_NumberFormat\FORMAT_DATE_YYYYMMDDSLASH.
Referenced by isDateTimeFormat().
|
static |
Convert a date from PHP to Excel.
mixed | $dateValue | PHP serialized date/time or date object |
Definition at line 148 of file Date.php.
References elseif(), and FormattedPHPToExcel().
Referenced by PHPExcel_Calculation_Functions\_getDateValue(), PHPExcel_Cell_AdvancedValueBinder\bindValue(), PHPExcel_Calculation_Functions\DATENOW(), PHPExcel_Calculation_Functions\DATETIMENOW(), PHPExcel_Calculation_Functions\EDATE(), and PHPExcel_Calculation_Functions\EOMONTH().
|
static |
Set the Excel calendar (Windows 1900 or Mac 1904)
integer | $baseDate | Excel base date |
Definition at line 69 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), and PHPExcel_Reader_Excel2007\load().
|
static |
Definition at line 60 of file Date.php.
Referenced by PHPExcel_Calculation_Functions\_getDateValue().
|
staticprivate |
Definition at line 58 of file Date.php.
Referenced by getExcelCalendar().
|
staticprivate |
const PHPExcel_Shared_Date::CALENDAR_MAC_1904 = 1904 |
Definition at line 56 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), PHPExcel_Writer_Excel5_Workbook\_storeDatemode(), PHPExcel_Writer_Excel2007_Workbook\_writeWorkbookPr(), and PHPExcel_Reader_Excel2007\load().
const PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900 = 1900 |
constants
Definition at line 55 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), PHPExcel_Reader_Excel2007\load(), and PHPExcel_Calculation_Functions\TIME().