30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
38 require_once PHPEXCEL_ROOT .
'PHPExcel/Cell.php';
41 require_once PHPEXCEL_ROOT .
'PHPExcel/Cell/IValueBinder.php';
44 require_once PHPEXCEL_ROOT .
'PHPExcel/Cell/DefaultValueBinder.php';
47 require_once PHPEXCEL_ROOT .
'PHPExcel/Style/NumberFormat.php';
50 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/Date.php';
53 require_once PHPEXCEL_ROOT .
'PHPExcel/Shared/String.php';
75 if (is_string($value)) {
85 if (preg_match(
'/^\-?[0-9]*\.?[0-9]*\s?\%$/', $value)) {
96 if (preg_match(
'/^(\d|[0-1]\d|2[0-3]):[0-5]\d$/', $value)) {
97 list($h, $m) = explode(
':', $value);
98 $days = $h / 24 + $m / 1440;
110 if (strtotime($value) !==
false) {
112 $saveTimeZone = date_default_timezone_get();
113 date_default_timezone_set(
'UTC');
122 date_default_timezone_set($saveTimeZone);
131 if (preg_match(
'/^\-?[0]+[0-9]*\.?[0-9]*$/', $value)) {