Sunday, October 30, 2011

C programming. show current date.

#include <sys/time.h>
int show_date(){
time_t tt;
struct tm *the_tm;

time(&tt);
the_tm = localtime(&tt);
printf("tm_year = %04d-%02d-%02d\n", the_tm->tm_year + 1900, the_tm->tm_mon, the_tm->tm_mday);
return 0;
}

Proxmox installation display out of range

Reference:  https://forum.proxmox.com/threads/proxmox-ve-screen-out-of-range.131297/