#include <stdio.h>
#include <time.h>
struct tm* GetTimeAndDate(unsigned long long milliseconds) {
time_t seconds = (time_t)(milliseconds / 1000);
return localtime(&seconds);
}
int main() {
char date[100];
struct tm *p = GetTimeAndDate(1073589847485);
strftime(date, sizeof(date) - 1, "%d/%m/%Y %H:%M", p);
printf("%s", date);
}
/*
run:
08/01/2004 21:24
*/