Ver Mensaje Individual
  #2 (permalink)  
Antiguo 22/08/2007, 18:41
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años, 8 meses
Puntos: 834
Re: problema con timestamp

Código PHP:
<script>
timestamp_a_evaluar='1171245789';
fecha=new Date(parseInt(timestamp_a_evaluar)*1000);
alert(fecha.getDate()+'-'+(fecha.getMonth()+1)+'-'+fecha.getFullYear())
</script> 
Con esto como base, ya el resto es fácil: segundos, fecha.getSeconds(), etc.