Performance tweaks and modification to style checking for hh:mm or mm:ss time formats to differentiate correctly from mm months

This commit is contained in:
Mark Baker
2013-02-01 12:45:21 +00:00
parent 144f38dd70
commit 3c3e910d74
4 changed files with 110 additions and 62 deletions
+4 -1
View File
@@ -390,8 +390,11 @@ class PHPExcel_Style_NumberFormat extends PHPExcel_Style_Supervisor implements P
'mmmm' => 'F',
// short month name
'mmm' => 'M',
// mm is minutes if time or month w/leading zero
// mm is minutes if time, but can also be month w/leading zero
// so we try to identify times be the inclusion of a : separator in the mask
// It isn't perfect, but the best way I know how
':mm' => ':i',
'mm:' => 'i:',
// month leading zero
'mm' => 'm',
// month no leading zero