[ Index ]

PHP Cross Reference of Akelos Framework

title

Body

[close]

/AkType/ -> AkTime.php (source)

   1  <?php
   2  class AkTime extends AkType
   3  {
   4      function toString($date_format = '')
   5      {
   6          if (!empty($date_format)) {
   7              $format = $date_format.'_';
   8          } else {
   9              $format = '';
  10          }
  11          $format = Ak::locale($format.'date_time_format');
  12          if (!$format) {
  13              $format = Ak::locale('date_time_format');
  14          }
  15          return date($format, $this->value);
  16      }
  17      
  18      function ago($val)
  19      {
  20          
  21      }
  22      function atBeginningOfDay()
  23      {
  24          
  25      }
  26      function atBeginningOfWeek()
  27      {
  28          
  29      }
  30      function atBeginningOfQuarter()
  31      {
  32          
  33      }
  34      function atBeginningOfMonth()
  35      {
  36          
  37      }
  38      
  39      function atBeginningOfYear()
  40      {
  41          
  42      }
  43      
  44      function atMidnight()
  45      {
  46          
  47      }
  48      
  49      function strftime($format)
  50      {
  51          return strftime($format, $this->value);
  52      }
  53  }
  54  ?>


Generated: Mon Oct 27 12:43:49 2008 Cross-referenced by PHPXref 0.6