Ver Mensaje Individual
  #2 (permalink)  
Antiguo 10/01/2005, 14:52
Avatar de Eternal Idol
Eternal Idol
 
Fecha de Ingreso: mayo-2004
Ubicación: Lucentum
Mensajes: 6.192
Antigüedad: 20 años
Puntos: 74
Código:
#include <windows.h>
#include <time.h>
#include <stdio.h>

int main( void )
{
   struct tm *tmTime;
   time_t respuesta;  //variable que devuelve el servidor
   time(&respuesta); //solo para esta prueba
   tmTime = gmtime(&respuesta);
   char *buff = (char*)malloc(1024);
   ZeroMemory(buff, 1024);
   strftime(buff, 1024, "%H:%M:%S", tmTime);
   printf(buff);
   free(buff);
   return 1;
}
__________________
¡Peron cumple, Evita dignifica! VIVA PERON CARAJO