ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Static Public Member Functions | |
static | setExcelCalendar ($baseDate) |
Set the Excel calendar (Windows 1900 or Mac 1904) More... | |
static | getExcelCalendar () |
Return the Excel calendar (Windows 1900 or Mac 1904) More... | |
static | ExcelToPHP ($dateValue=0, $adjustToTimezone=FALSE, $timezone=NULL) |
Convert a date from Excel to PHP. More... | |
static | ExcelToPHPObject ($dateValue=0) |
Convert a date from Excel to a PHP Date/Time object. More... | |
static | PHPToExcel ($dateValue=0, $adjustToTimezone=FALSE, $timezone=NULL) |
Convert a date from PHP to Excel. More... | |
static | FormattedPHPToExcel ($year, $month, $day, $hours=0, $minutes=0, $seconds=0) |
FormattedPHPToExcel. More... | |
static | isDateTime (PHPExcel_Cell $pCell) |
Is a given cell a date/time? More... | |
static | isDateTimeFormat (PHPExcel_Style_NumberFormat $pFormat) |
Is a given number format a date/time? More... | |
static | isDateTimeFormatCode ($pFormatCode='') |
Is a given number format code a date/time? More... | |
static | stringToExcel ($dateValue='') |
Convert a date/time string to Excel time. More... | |
static | monthStringToNumber ($month) |
static | dayStringToNumber ($day) |
Data Fields | |
const | CALENDAR_WINDOWS_1900 = 1900 |
constants More... | |
const | CALENDAR_MAC_1904 = 1904 |
Static Public Attributes | |
static | $_monthNames |
static | $_numberSuffixes |
Static Protected Attributes | |
static | $_excelBaseDate = self::CALENDAR_WINDOWS_1900 |
Static Private Attributes | |
static | $possibleDateFormatCharacters = 'eymdHs' |
|
static |
Definition at line 385 of file Date.php.
Referenced by PHPExcel_Calculation_DateTime\DATE().
|
static |
Convert a date from Excel to PHP.
long | $dateValue | Excel date/time value |
boolean | $adjustToTimezone | Flag indicating whether $dateValue should be treated as a UST timestamp, or adjusted to UST |
string | $timezone | The timezone for finding the adjustment from UST |
Definition at line 120 of file Date.php.
Referenced by PHPExcel_Worksheet_AutoFilter\_filterTestInDateGroupSet(), PHPExcel_Worksheet_AutoFilter\_filterTestInPeriodDateSet(), PHPExcel_Calculation_DateTime\DATE(), PHPExcel_Calculation_DateTime\DATENOW(), PHPExcel_Calculation_DateTime\DATEVALUE(), PHPExcel_Calculation_DateTime\EDATE(), PHPExcel_Calculation_DateTime\EOMONTH(), PHPExcel_Calculation_DateTime\HOUROFDAY(), PHPExcel_Calculation_DateTime\MINUTEOFHOUR(), PHPExcel_Calculation_DateTime\SECONDOFMINUTE(), PHPExcel_Calculation_DateTime\TIME(), PHPExcel_Calculation_DateTime\TIMEVALUE(), and PHPExcel_Calculation_DateTime\WORKDAY().
|
static |
Convert a date from Excel to a PHP Date/Time object.
integer | $dateValue | Excel date/time value |
Definition at line 160 of file Date.php.
Referenced by PHPExcel_Calculation_DateTime\_adjustDateByMonths(), PHPExcel_Calculation_Financial\_coupFirstPeriodDate(), PHPExcel_Style_NumberFormat\_formatAsDate(), PHPExcel_Calculation_DateTime\DATE(), PHPExcel_Calculation_DateTime\DATEDIF(), PHPExcel_Calculation_DateTime\DATENOW(), PHPExcel_Calculation_DateTime\DAYOFMONTH(), PHPExcel_Calculation_DateTime\DAYOFWEEK(), PHPExcel_Calculation_DateTime\DAYS360(), PHPExcel_Calculation_DateTime\MONTHOFYEAR(), PHPExcel_Calculation_DateTime\WEEKOFYEAR(), PHPExcel_Calculation_DateTime\WORKDAY(), and PHPExcel_Calculation_DateTime\YEAR().
|
static |
FormattedPHPToExcel.
long | $year | |
long | $month | |
long | $day | |
long | $hours | |
long | $minutes | |
long | $seconds |
Definition at line 215 of file Date.php.
Referenced by PHPExcel_Calculation_DateTime\DATE(), PHPExcel_Calculation_DateTime\DATEVALUE(), PHPExcel_Reader_OOCalc\loadIntoExisting(), PHPExcel_Calculation_DateTime\TIME(), and PHPExcel_Calculation_DateTime\TIMEVALUE().
|
static |
Return the Excel calendar (Windows 1900 or Mac 1904)
Definition at line 106 of file Date.php.
Referenced by PHPExcel_Writer_Excel2007_Workbook\_writeWorkbookPr(), PHPExcel_Calculation_DateTime\DATE(), and PHPExcel_Calculation_DateTime\TIME().
|
static |
Is a given cell a date/time?
PHPExcel_Cell | $pCell |
Definition at line 254 of file Date.php.
References PHPExcel_Cell\getCoordinate(), and PHPExcel_Cell\getWorksheet().
|
static |
Is a given number format a date/time?
PHPExcel_Style_NumberFormat | $pFormat |
Definition at line 269 of file Date.php.
References PHPExcel_Style_NumberFormat\getFormatCode().
|
static |
Is a given number format code a date/time?
string | $pFormatCode |
Definition at line 282 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, PHPExcel_Style_NumberFormat\FORMAT_DATE_YYYYMMDDSLASH, and PHPExcel_Style_NumberFormat\FORMAT_GENERAL.
Referenced by PHPExcel_Reader_Gnumeric\loadIntoExisting(), and PHPExcel_Calculation_TextData\TEXTFORMAT().
|
static |
Definition at line 374 of file Date.php.
Referenced by PHPExcel_Calculation_DateTime\DATE().
|
static |
Convert a date from PHP to Excel.
mixed | $dateValue | PHP serialized date/time or date object |
boolean | $adjustToTimezone | Flag indicating whether $dateValue should be treated as a UST timestamp, or adjusted to UST |
string | $timezone | The timezone for finding the adjustment from UST |
Definition at line 185 of file Date.php.
References date.
Referenced by PHPExcel_Calculation_Financial\_coupFirstPeriodDate(), PHPExcel_Worksheet_AutoFilter\_dynamicFilterDateRange(), PHPExcel_Calculation_DateTime\_getDateValue(), PHPExcel_Calculation_DateTime\DATENOW(), PHPExcel_Calculation_DateTime\DATETIMENOW(), PHPExcel_Calculation_DateTime\EDATE(), PHPExcel_Calculation_DateTime\EOMONTH(), PHPExcel_Reader_Excel2003XML\loadIntoExisting(), and PHPExcel_Reader_OOCalc\loadIntoExisting().
|
static |
Set the Excel calendar (Windows 1900 or Mac 1904)
integer | $baseDate | Excel base date (1900 or 1904) |
Definition at line 91 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), PHPExcel_Reader_Excel2007\load(), DateTimeTest\testDATEwith1904Calendar(), and DateTimeTest\testDATEwith1904CalendarError().
|
static |
Convert a date/time string to Excel time.
string | $dateValue | Examples: '2009-12-31', '2009-12-31 15:59', '2009-12-31 15:59:10' |
Definition at line 350 of file Date.php.
References PHPExcel_Calculation_DateTime\DATEVALUE(), PHPExcel_Calculation_DateTime\TIMEVALUE(), and PHPExcel_Calculation_Functions\VALUE().
Referenced by PHPExcel_Cell_AdvancedValueBinder\bindValue(), and ilExcel\prepareDateValue().
|
staticprotected |
|
static |
|
static |
|
staticprivate |
const PHPExcel_Shared_Date::CALENDAR_MAC_1904 = 1904 |
Definition at line 41 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), PHPExcel_Writer_Excel2007_Workbook\_writeWorkbookPr(), PHPExcel_Reader_Excel2007\load(), DateTest\testDateTimeExcelToPHP1904(), DateTest\testDateTimePHPToExcel1904(), DateTimeTest\testDATEwith1904Calendar(), DateTimeTest\testDATEwith1904CalendarError(), and DateTest\testSetExcelCalendar().
const PHPExcel_Shared_Date::CALENDAR_WINDOWS_1900 = 1900 |
constants
Definition at line 40 of file Date.php.
Referenced by PHPExcel_Reader_Excel5\_readDateMode(), PHPExcel_Reader_Excel2007\load(), DateTest\testDateTimeExcelToPHP1900(), DateTest\testDateTimeExcelToPHP1900Timezone(), DateTest\testDateTimeFormattedPHPToExcel1900(), DateTest\testDateTimePHPToExcel1900(), DateTimeTest\testDATEwith1904Calendar(), DateTimeTest\testDATEwith1904CalendarError(), DateTest\testSetExcelCalendar(), and PHPExcel_Calculation_DateTime\TIME().