// "1999-01-01"
// "0123456789"
std::string d = "1999-01-01";
CTime time(
atoi( d.substr(0, 4).c_str() ), // Year
atoi( d.substr(5, 2).c_str() ), // Month
atoi( d.substr(8, 2).c_str() ), // Day
0, 0, 0 /* Time */ );
Original Post : http://neodreamer-dev.tistory.com/229
No comments :
Post a Comment