return $D;
}
+function fecha ($F, $DI, $Extras = array ("Año")) {
+ $T = ($F > 946684800 ? $F : strtotime (chop ($F, "Z"))); # Convertir a timestamp si no lo es (comparamos con el timestamp de 2000-01-01 00:00 UTC)
+ if ($DI["formato fecha"] == "ISO") {
+ $R = date ("Y-m-d", $T);
+ if (in_array ("Hora", $Extras)) $R .= date (", H:i", $T);
+ } else {
+ if (in_array ("DíaSem", $Extras)) $D = (in_array ("Larga", $Extras) ? "{$DI["díasemc"][date ("N", $T)]}, " : "{$DI["díasem"][date ("N", $T)]} ");
+ $A = (in_array ("Año", $Extras) ? " Y" : "");
+ if (in_array ("Hora", $Extras)) $H = ", H:i" . (in_array ("Larga", $Extras) ? " (e)" : "");
+ $M = (in_array ("Larga", $Extras) ? "de " . $DI["mesc"][date ("n", $T)] . ($A ? " de" : "") : $DI["mes"][date ("n", $T)]);
+ $R = $D . (date ("j ", $T) . $M . date ("{$A}{$H}", $T));
+ }
+ return ($F ? $R : "N/D");
+}
+
function wikiencode ($URLA, $URLB = NULL, $URLC = NULL, $MI = AZ, $MF = az) {
$Cambios = array (
"+" => "_", "%3A" => ":", "%2F" => "/", # Inversión de urlencodes