30 if (!defined(
'PHPEXCEL_ROOT')) {
34 define(
'PHPEXCEL_ROOT', dirname(__FILE__) .
'/../../');
35 require(PHPEXCEL_ROOT .
'PHPExcel/Autoloader.php');
58 if (is_string($value)) {
83 if (preg_match(
'/^\-?[0-9]*\.?[0-9]*\s?\%$/', $value)) {
92 if (preg_match(
'/^(\d|[0-1]\d|2[0-3]):[0-5]\d$/', $value)) {
93 list($h, $m) = explode(
':', $value);
94 $days = $h / 24 + $m / 1440;
103 if (preg_match(
'/^(\d|[0-1]\d|2[0-3]):[0-5]\d:[0-5]\d$/', $value)) {
104 list($h, $m, $s) = explode(
':', $value);
105 $days = $h / 24 + $m / 1440 + $s / 86400;
118 if (strpos($value,
':') !==
false) {
119 $formatCode =
'yyyy-mm-dd h:mm';
121 $formatCode =
'yyyy-mm-dd';
128 if (strpos($value,
"\n") !==
false) {