Varien_Date Class Reference

List of all members.

Static Public Member Functions

static convertZendToStrftime ($value, $convertDate=true, $convertTime=true)

Public Attributes

const DATETIME_INTERNAL_FORMAT = 'yyyy-MM-dd HH:mm:ss'
const DATE_INTERNAL_FORMAT = 'yyyy-MM-dd'

Static Protected Member Functions

static _convert ($value, $dictionary)


Detailed Description

Definition at line 34 of file Date.php.


Member Function Documentation

static _convert ( value,
dictionary 
) [static, protected]

Definition at line 80 of file Date.php.

00081     {
00082         foreach ($dictionary as $search => $replace) {
00083             $value = preg_replace('/(^|[^%])' . $search . '/', '$1' . $replace, $value);
00084         }
00085         return $value;
00086     }

static convertZendToStrftime ( value,
convertDate = true,
convertTime = true 
) [static]

Definition at line 69 of file Date.php.

00070     {
00071         if ($convertTime) {
00072             $value = self::_convert($value, self::$_convertZendToStrftimeTime);
00073         }
00074         if ($convertDate) {
00075             $value = self::_convert($value, self::$_convertZendToStrftimeDate);
00076         }
00077         return $value;
00078     }


Member Data Documentation

const DATE_INTERNAL_FORMAT = 'yyyy-MM-dd'

Definition at line 41 of file Date.php.

const DATETIME_INTERNAL_FORMAT = 'yyyy-MM-dd HH:mm:ss'

Date format, used as default. Compatible with Zend_Date

Definition at line 40 of file Date.php.


The documentation for this class was generated from the following file:

Generated on Sat Jul 4 17:25:01 2009 for Magento by  doxygen 1.5.8