PHPExcel_Shared

# Class: PHPExcel_Shared_Date Source Location: /PHPExcel/Shared/Date.php
### Class Overview
PHPExcel_Shared_Date #### Author(s): #### Copyright: Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel) | ### Variables $dateTimeObjectType $ExcelBaseDate $possibleDateFormatCharacters | ### Constants CALENDAR_MAC_1904 CALENDAR_WINDOWS_1900 | ### Methods ExcelToPHP ExcelToPHPObject FormattedPHPToExcel getExcelCalendar isDateTime isDateTimeFormat isDateTimeFormatCode PHPToExcel setExcelCalendar
### Class Details [line 52] PHPExcel_Shared_Date PHPExcel_Shared_Date #### Tags:
copyright: | Copyright (c) 2006 - 2010 PHPExcel (http://www.codeplex.com/PHPExcel)
[ Top ] ### Class Variables #### static $dateTimeObjectType = 'DateTime' [line 60] #### Tags:
access: | public
Type: | mixed
[ Top ] #### static $ExcelBaseDate = self::CALENDAR_WINDOWS_1900 [line 58] #### Tags:
access: | private
Type: | mixed
[ Top ] #### static $possibleDateFormatCharacters = 'ymdHis' [line 238] #### Tags:
access: | private
Type: | mixed
[ Top ] ### Class Methods ### static method ExcelToPHP [line 95]
`static long ExcelToPHP( [long $dateValue = 0])`
Convert a date from Excel to PHP Convert a date from Excel to PHP #### Tags:
return: | PHP serialized date/time
access: | public
#### Parameters:
long | $dateValue | Excel date/time value
[ Top ] ### static method ExcelToPHPObject [line 131]
`static long ExcelToPHPObject( [long $dateValue = 0])`
Convert a date from Excel to a PHP Date/Time object Convert a date from Excel to a PHP Date/Time object #### Tags:
return: | PHP date/time object
access: | public
#### Parameters:
long | $dateValue | Excel date/time value
[ Top ] ### static method FormattedPHPToExcel [line 183]
`static long FormattedPHPToExcel( long $year, long $month, long $day, [long $hours = 0], [long $minutes = 0], [long $seconds = 0])`
FormattedPHPToExcel FormattedPHPToExcel #### Tags:
return: | Excel date/time value
access: | public
#### Parameters:
long | $year |
long | $month |
long | $day |
long | $hours |
long | $minutes |
long | $seconds |
[ Top ] ### static method getExcelCalendar [line 84]
`static integer getExcelCalendar( )`
Return the Excel calendar (Windows 1900 or Mac 1904) Return the Excel calendar (Windows 1900 or Mac 1904) #### Tags:
return: | Excel base date
access: | public
[ Top ] ### static method isDateTime [line 222]
`static boolean isDateTime( $pCell)`
Is a given cell a date/time? Is a given cell a date/time? #### Tags:
access: | public
#### Parameters:
PHPExcel_Cell | $pCell |
[ Top ] ### static method isDateTimeFormat [line 233]
`static boolean isDateTimeFormat( $pFormat)`
Is a given number format a date/time? Is a given number format a date/time? #### Tags:
access: | public
#### Parameters:
PHPExcel_Style_NumberFormat | $pFormat |
[ Top ] ### static method isDateTimeFormatCode [line 246]
`static boolean isDateTimeFormatCode( [string $pFormatCode = ''])`
Is a given number format code a date/time? Is a given number format code a date/time? #### Tags:
access: | public
#### Parameters:
string | $pFormatCode |
[ Top ] ### static method PHPToExcel [line 153]
`static mixed PHPToExcel( [mixed $dateValue = 0])`
Convert a date from PHP to Excel Convert a date from PHP to Excel #### Tags:
return: | Excel date/time value or boolean False on failure
access: | public
#### Parameters:
mixed | $dateValue | PHP serialized date/time or date object
[ Top ] ### static method setExcelCalendar [line 69]
`static boolean setExcelCalendar( integer $baseDate)`
Set the Excel calendar (Windows 1900 or Mac 1904) Set the Excel calendar (Windows 1900 or Mac 1904) #### Tags:
return: | Success or failure
access: | public
#### Parameters:
integer | $baseDate | Excel base date
[ Top ] ### Class Constants #### CALENDAR_MAC_1904 = 1904 [line 56] [ Top ] #### CALENDAR_WINDOWS_1900 = 1900 [line 55] constants constants [ Top ] Documentation generated on Mon, 11 Jan 2010 08:07:41 +0100 by phpDocumentor 1.4.1