forked from Wavyzz/dolibarr
Qual: Removed deprecated code
This commit is contained in:
@@ -684,31 +684,6 @@ class DoliDb
|
||||
return $date;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Convert (by PHP) a GM Timestamp date into a GM string date to insert into a date field.
|
||||
* Function to use to build INSERT, UPDATE or WHERE predica
|
||||
* \param param Date TMS to convert
|
||||
* \return string Date in a string YYYYMMDDHHMMSS
|
||||
*/
|
||||
/*function gmtosdate($param)
|
||||
{
|
||||
return adodb_strftime("%Y%m%d%H%M%S",$param,true);
|
||||
}*/
|
||||
|
||||
/**
|
||||
* \brief Convert (by PHP) a GM string date into a GM Timestamps date
|
||||
* \param string Date in a string (YYYYMMDDHHMMSS, YYYYMMDD, YYYY-MM-DD HH:MM:SS)
|
||||
* \return date Date TMS
|
||||
* \example 19700101020000 -> 7200
|
||||
*/
|
||||
/*function gmtotdate($string)
|
||||
{
|
||||
$string=eregi_replace('[^0-9]','',$string);
|
||||
$tmp=$string.'000000';
|
||||
$date=dol_mktime(substr($tmp,8,2),substr($tmp,10,2),substr($tmp,12,2),substr($tmp,4,2),substr($tmp,6,2),substr($tmp,0,4),1);
|
||||
return $date;
|
||||
}*/
|
||||
|
||||
/**
|
||||
* \brief Formatage d'un if SQL
|
||||
* \param test chaine test
|
||||
|
||||
Reference in New Issue
Block a user