wordpress/wp-content/plugins/sqlite-integration/functions.php
/**
	 * Method to emulate MySQL DATEFORMAT() function.
	 *
	 * @param string date formatted as '0000-00-00' or datetime as '0000-00-00 00:00:00'.
	 * @param string $format
	 * @return string formatted according to $format
	 */
Method to emulate MySQL DATEFORMAT() function.
Method to emulate MySQL DATEFORMAT () function .
public function dateformat($date, $format){
		$mysql_php_dateformats = array ( '%a' => 'D', '%b' => 'M', '%c' => 'n', '%D' => 'jS', '%d' => 'd', '%e' => 'j', '%H' => 'H', '%h' => 'h', '%I' => 'h', '%i' => 'i', '%j' => 'z', '%k' => 'G', '%l' => 'g', '%M' => 'F', '%m' => 'm', '%p' => 'A', '%r' => 'h:i:s A', '%S' => 's', '%s' => 's', '%T' => 'H:i:s', '%U' => 'W', '%u' => 'W', '%V' => 'W', '%v' => 'W', '%W' => 'l', '%w' => 'w', '%X' => 'Y', '%x' => 'o', '%Y' => 'Y', '%y' => 'y', );
		$t      = strtotime($date);
		$format = strtr($format, $mysql_php_dateformats);
		$output =  date($format, $t);
		return $output;
	}
public function dateformat ( $ date , $ format ) { $ mysql_php_dateformats = array ( '%a' => 'D' , '%b' => 'M' , '%c' => 'n' , '%D' => 'jS' , '%d' => 'd' , '%e' => 'j' , '%H' => 'H' , '%h' => 'h' , '%I' => 'h' , '%i' => 'i' , '%j' => 'z' , '%k' => 'G' , '%l' => 'g' , '%M' => 'F' , '%m' => 'm' , '%p' => 'A' , '%r' => 'h:i:s A' , '%S' => 's' , '%s' => 's' , '%T' => 'H:i:s' , '%U' => 'W' , '%u' => 'W' , '%V' => 'W' , '%v' => 'W' , '%W' => 'l' , '%w' => 'w' , '%X' => 'Y' , '%x' => 'o' , '%Y' => 'Y' , '%y' => 'y' , ) ; $ t = strtotime ( $ date ) ; $ format = strtr ( $ format , $ mysql_php_dateformats ) ; $ output = date ( $ format , $ t ) ; return $ output ; }
Method to emulate MySQL DATEFORMAT() function.
Method to emulate MySQL DATEFORMAT () function .