SimpleExcel.php
authorAlan Knowles <alan@roojs.com>
Thu, 6 Dec 2012 07:40:29 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 6 Dec 2012 07:40:29 +0000 (15:40 +0800)
SimpleExcel.php

index 6c4edf3..abea4a6 100644 (file)
@@ -87,6 +87,15 @@ class Pman_Core_SimpleExcel extends Pman
          
     }
     
+    
+    function date($str)
+    {
+        
+        return (strtotime($str) +  (86400 *  25569)) / 86400;
+        
+    }
+    
+    
     function buildpage($workbook,  $formats , $data,$cfg)
     {
         //echo '<PRE>';        print_R($cfg);