public function formatTemporalValue($value, ColumnMap $cMap)
    {
        /** @var $dt PropelDateTime */
        if ($dt = PropelDateTime::newInstance($value)) {
            switch ($cMap->getType()) {
                case PropelTypes::TIMESTAMP:
                case PropelTypes::BU_TIMESTAMP:
                    $value = $dt->format($this->getTimestampFormatter());
                    break;
                case PropelTypes::DATE:
                case PropelTypes::BU_DATE:
                    $value = $dt->format($this->getDateFormatter());
                    break;
                case PropelTypes::TIME:
                    $value = $dt->format($this->getTimeFormatter());
                    break;
            }
        }

        return $value;
    }
public function formatTemporalValue($value, ColumnMap $cMap)
    {
        /** @var $dt PropelDateTime */
        if ($dt = PropelDateTime::newInstance($value)) {
            switch ($cMap->getType()) {
                case PropelTypes::TIMESTAMP:
                case PropelTypes::BU_TIMESTAMP:
                    $value = $dt->format($this->getTimestampFormatter());
                    break;
                case PropelTypes::DATE:
                case PropelTypes::BU_DATE:
                    $value = $dt->format($this->getDateFormatter());
                    break;
                case PropelTypes::TIME:
                    $value = $dt->format($this->getTimeFormatter());
                    break;
            }
        }

        return $value;
    }
public function formatTemporalValue ( $ value , ColumnMap $ cMap ) { /** @var $dt PropelDateTime */ if ( $ dt = PropelDateTime :: newInstance ( $ value ) ) { switch ( $ cMap -> getType ( ) ) { case PropelTypes :: TIMESTAMP : case PropelTypes :: BU_TIMESTAMP : $ value = $ dt -> format ( $ this -> getTimestampFormatter ( ) ) ; break ; case PropelTypes :: DATE : case PropelTypes :: BU_DATE : $ value = $ dt -> format ( $ this -> getDateFormatter ( ) ) ; break ; case PropelTypes :: TIME : $ value = $ dt -> format ( $ this -> getTimeFormatter ( ) ) ; break ; } } return $ value ; }
Formats a temporal value before binding, given a ColumnMap object

@param mixed     $value The temporal value
@param ColumnMap $cMap

@return string The formatted temporal value
Formats a temporal value before binding given a ColumnMap object