2015/03/20

문자열 날짜를 time_t 로 변환하기

    std::wistringstream ss(L"2015-03-20 14:13:27");
std::tm dt;
ss >> std::get_time( &dt, L"%Y-%m-%d %H:%M:%S" );
std::time_t t = std::mktime(dt);
<

Original Post : http://neodreamer-dev.tistory.com/735

No comments :

Post a Comment