반응형
time_t t;
struct tm *nTime;
time(&t);
nTime = localtime(&t);
printf("%04d%02d%02d%02d%02d%02d", nTime->tm_year+1900, nTime->tm_mon+1, nTime->tm_mday, nTime->tm_hour, nTime->tm_min, nTime->tm_sec);
반응형
'DEV > C' 카테고리의 다른 글
라이브러리 생성 (0) | 2010.07.19 |
---|---|
PRO*C Error : "error while loading shared libraries: libclntsh.so" (0) | 2010.07.12 |
Visual C,C++ 에러 : is not a precompiled header file created with this compiler (0) | 2010.05.27 |