time_t
-
Unix Time (Epoch)Computer/linux 2010. 4. 27. 23:42
C code (copied from wiki modified in order to convert a known unix epoch time #include #include int main(void) { time_t now; time_t old; struct tm *ts; struct tm *ots; char buf[80]; char buf2[80]; /* Get the current time */ now = time(NULL); ts = localtime(&now); strftime(buf, sizeof(buf), "%a %Y-%m-%d %H:%M:%S %Z", ts); printf("%s\n", buf); old = 1257169741; ots = localtime(&old); strftime(buf2..