[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/phpexcel/PHPExcel/Shared/ -> Date.php (summary)

PHPExcel Copyright (c) 2006 - 2014 PHPExcel

Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
Version: ##VERSION##, ##DATE##
File Size: 393 lines (13 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Shared_Date:: (12 methods):
  setExcelCalendar()
  getExcelCalendar()
  ExcelToPHP()
  ExcelToPHPObject()
  PHPToExcel()
  FormattedPHPToExcel()
  isDateTime()
  isDateTimeFormat()
  isDateTimeFormatCode()
  stringToExcel()
  monthStringToNumber()
  dayStringToNumber()


Class: PHPExcel_Shared_Date  - X-Ref

PHPExcel_Shared_Date

setExcelCalendar($baseDate)   X-Ref
Set the Excel calendar (Windows 1900 or Mac 1904)

param: integer    $baseDate            Excel base date (1900 or 1904)
return: boolean                        Success or failure

getExcelCalendar()   X-Ref
Return the Excel calendar (Windows 1900 or Mac 1904)

return: integer    Excel base date (1900 or 1904)

ExcelToPHP($dateValue = 0, $adjustToTimezone = FALSE, $timezone = NULL)   X-Ref
Convert a date from Excel to PHP

param: long        $dateValue            Excel date/time value
param: boolean        $adjustToTimezone    Flag indicating whether $dateValue should be treated as
param: string         $timezone            The timezone for finding the adjustment from UST
return: long        PHP serialized date/time

ExcelToPHPObject($dateValue = 0)   X-Ref
Convert a date from Excel to a PHP Date/Time object

param: integer        $dateValue        Excel date/time value
return: integer                        PHP date/time object

PHPToExcel($dateValue = 0, $adjustToTimezone = FALSE, $timezone = NULL)   X-Ref
Convert a date from PHP to Excel

param: mixed        $dateValue            PHP serialized date/time or date object
param: boolean        $adjustToTimezone    Flag indicating whether $dateValue should be treated as
param: string         $timezone            The timezone for finding the adjustment from UST
return: mixed        Excel date/time value

FormattedPHPToExcel($year, $month, $day, $hours=0, $minutes=0, $seconds=0)   X-Ref
FormattedPHPToExcel

param: long    $year
param: long    $month
param: long    $day
param: long    $hours
param: long    $minutes
param: long    $seconds
return: long                Excel date/time value

isDateTime(PHPExcel_Cell $pCell)   X-Ref
Is a given cell a date/time?

param: PHPExcel_Cell    $pCell
return: boolean

isDateTimeFormat(PHPExcel_Style_NumberFormat $pFormat)   X-Ref
Is a given number format a date/time?

param: PHPExcel_Style_NumberFormat    $pFormat
return: boolean

isDateTimeFormatCode($pFormatCode = '')   X-Ref
Is a given number format code a date/time?

param: string    $pFormatCode
return: boolean

stringToExcel($dateValue = '')   X-Ref
Convert a date/time string to Excel time

param: string    $dateValue        Examples: '2009-12-31', '2009-12-31 15:59', '2009-12-31 15:59:10'
return: float|FALSE        Excel date/time serial value

monthStringToNumber($month)   X-Ref
No description

dayStringToNumber($day)   X-Ref
No description



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1