Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

410
 
443
 
443
 
datetime.php
_> 11 <?php
  22 /*
<> 3 -  $Id: datetime.php 410 2006-01-26 09:17:09Z hpdl $
   3+  $Id: datetime.php 443 2006-02-19 23:01:01Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
5757       }
  5858     }
  5959 
<>  60+    function getTimestamp($date = '') {
   61+      global $osC_Language;
   62+
   63+      if (empty($date)) {
   64+        $date = osC_DateTime::getNow();
   65+      }
   66+
   67+      $year = substr($date, 0, 4);
   68+      $month = (int)substr($date, 5, 2);
   69+      $day = (int)substr($date, 8, 2);
   70+      $hour = (int)substr($date, 11, 2);
   71+      $minute = (int)substr($date, 14, 2);
   72+      $second = (int)substr($date, 17, 2);
   73+
   74+      return mktime($hour, $minute, $second, $month, $day, $year);
   75+    }
   76+
<_ 6077     function isLeapYear($year = '') {
  6178       if (empty($year)) {
  6279         $year = $this->year;