/* string date_func(void) Return the current system date. Description Our second function does not expects arguments and return the current system date. Parameter None Return value String: Current system date. Usage example <?php echo date_func(); //would return  14:53:30 ?>  */
int date_func(ph7_context *pCtx, int argc, ph7_value **argv)
/* string date_func(void) Return the current system date. Description Our second function does not expects arguments and return the current system date. Parameter None Return value String: Current system date. Usage example <?php echo date_func(); //would return  14:53:30 ?>  */
int date_func(ph7_context *pCtx, int argc, ph7_value **argv)
{
		time_t tt;
		struct tm *pNow;
		time(&tt);
		pNow = localtime(&tt);
		ph7_result_string_format(pCtx, 
			"%04d-%02d-%02d %02d:%02d:%02d",
			pNow->tm_year + 1900,
			pNow->tm_mday,
			pNow->tm_mon + 1,
			pNow->tm_hour,
			pNow->tm_min,
			pNow->tm_sec
			);
		return PH7_OK;
}