src/Neuron/Core/Tools.php
public static function timestampToMysql ($time = null)
	{
		if ($time == null)
		{	
			$time = time ();
		}
		
		$db = Neuron_DB_Database::__getInstance ();
		return $db->fromUnixtime ($time);
		//return self::dateToMysql (date ('d', $time), date ('m', $time), date ('Y', $time));
	
	}
public static function timestampToMysql ($time = null)
	{
		if ($time == null)
		{	
			$time = time ();
		}
		
		$db = Neuron_DB_Database::__getInstance ();
		return $db->fromUnixtime ($time);
		//return self::dateToMysql (date ('d', $time), date ('m', $time), date ('Y', $time));
	
	}
public static function timestampToMysql ( $ time = null ) { if ( $ time == null ) { $ time = time ( ) ; } $ db = Neuron_DB_Database :: __getInstance ( ) ; return $ db -> fromUnixtime ( $ time ) ; //return self::dateToMysql (date ('d', $time), date ('m', $time), date ('Y', $time)); }
/*
public static function datetimeToMysql ($day, $month, $year, $hour, $minute, $seconds)
{
return self::addZeros ($year, 4).
'-'.self::addZeros ($month, 2).
'-'.self::addZeros ($day, 2)
.' '.self::addZeros ($hour, 2)
.':'.self::addZeros ($minute, 2).
':'.self::addZeros ($seconds, 2);

}
/ * public static function datetimeToMysql ( $day $month $year $hour $minute $seconds ) { return self :: addZeros ( $year 4 ) . - . self :: addZeros ( $month 2 ) . - . self :: addZeros ( $day 2 ) . . self :: addZeros ( $hour 2 ) . : . self :: addZeros ( $minute 2 ) . : . self :: addZeros ( $seconds 2 ) ;