구차니 2021. 2. 17. 18:05

x86이나 다른데서 해봐야지.. __USE_XOPEN을 안써서 정상 작동을 안한건지

그게 아니라면 c 라이브러리를 생성할때 해당 옵션을 주고 하지 않아서 정상 작동을 하지 않은건지 모르겠다.

 

#ifdef __USE_XOPEN
/* Parse S according to FORMAT and store binary time information in TP.
   The return value is a pointer to the first unparsed character in S.  */
extern char *strptime (const char *__restrict __s,
                       const char *__restrict __fmt, struct tm *__tp)
     __THROW;
#endif

[링크 : https://stackoverflow.com/questions/3053999/c-convert-time-t-to-string-with-format-yyyy-mm-dd-hhmmss]

[링크 : https://man7.org/linux/man-pages/man3/strftime.3.html]

[링크 : https://man7.org/linux/man-pages/man3/strptime.3.html]

[링크 : https://www.it-note.kr/143]