/** * Tests the JDatabase::getDateFormat method. * * @return void * * @since 11.4 */ public function testGetDateFormat() { $this->assertThat( $this->db->getDateFormat(), $this->equalTo('Y-m-d H:i:s') ); }
/** * Returns a PHP date() function compliant date format for the database driver. * * @param string $dateTime 'datetime', 'date', 'time' * @return string The format string. */ public function getDateFormat($dateTime = 'datetime') { return $this->formatDateOrTime($this->_db->getDateFormat(), $dateTime); }