#include<stdio.h>
#include<time.h>
void main()
{
struct tm *tiempo;
time_t t_tiempo;
time(&t_tiempo);
tiempo=localtime(&t_tiempo);
printf("FECHA: %02d/%02d/%d\nHORA: %02d:%02d:%02d",tiempo->tm_mday,tiempo->tm_mon,\
tiempo->tm_year+1900,tiempo->tm_hour,tiempo->tm_min,tiempo->tm_sec);
getchar();
}