public static function dttm2br($var,$separador="/"){
			if(preg_match('/([0-9]{4})\-([0-9]{2})\-([012][0-9]|3[01])[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})/', $var, $array)){
				$dt = self::checkDtbr($array[3], $array[2], $array[1],$separador);
				if($dt && ($array[4] != '00' || $array[5] != '00'))
					$dt .= '  '.$array[4].':'.$array[5];
				return $dt;
			}
		}
public static function dttm2br($var,$separador="/"){
			if(preg_match('/([0-9]{4})\-([0-9]{2})\-([012][0-9]|3[01])[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})/', $var, $array)){
				$dt = self::checkDtbr($array[3], $array[2], $array[1],$separador);
				if($dt && ($array[4] != '00' || $array[5] != '00'))
					$dt .= '  '.$array[4].':'.$array[5];
				return $dt;
			}
		}
public static function dttm2br ( $ var , $ separador = "/" ) { if ( preg_match ( '/([0-9]{4})\-([0-9]{2})\-([012][0-9]|3[01])[ ]([0-9]{2}):([0-9]{2}):([0-9]{2})/' , $ var , $ array ) ) { $ dt = self :: checkDtbr ( $ array [ 3 ] , $ array [ 2 ] , $ array [ 1 ] , $ separador ) ; if ( $ dt && ( $ array [ 4 ] != '00' || $ array [ 5 ] != '00' ) ) $ dt .= '  ' . $ array [ 4 ] . ':' . $ array [ 5 ] ; return $ dt ; } }
transforma datetime do servidor US para data e hora BR
transforma datetime do servidor US para data e hora BR