Subversion Repositories eFlore/Applications.cel

Rev

Rev 531 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 531 Rev 532
Line 325... Line 325...
325
		}
325
		}
326
		return $donnees;
326
		return $donnees;
327
	}
327
	}
Line 328... Line 328...
328
	
328
	
329
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
329
	protected function convertirDateHeureMysqlEnTimestamp($date_heure_mysql){
330
       $val = (int)explode(' ', $date_heure_mysql);
330
       $val = explode(' ', $date_heure_mysql);
331
       $date = (int)explode('-', $val[0]);
331
       $date = explode('-', $val[0]);
332
       $heure = (int)explode(':', $val[1]);
332
       $heure = explode(':', $val[1]);
333
       return mktime($heure[0], $heure[1], $heure[2], $date[1], $date[2], $date[0]);
333
       return mktime((int) $heure[0], (int) $heure[1], (int) $heure[2], (int) $date[1], (int) $date[2], (int) $date[0]);
Line 334... Line 334...
334
	}
334
	}
335
	
335
	
336
	protected function etreNull($valeur) {
336
	protected function etreNull($valeur) {