#include < sys/time.h > #include < time.h > #include < stdio.h > int main(){ struct timeval tv; struct tm tm; tm.tm_sec = 0; tm.tm_min = 0; tm.tm_hour = 0; tm.tm_mday = 1; tm.tm_mon = 0; tm.tm_year = 138; tm.tm_isdst = 0; tv.tv_sec = mktime(&tm); tv.tv_usec = 0; if (settimeofday(&tv, NULL) < 0){ perror("settimeofday"); return 1; } return 0; }

