Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::time_t t = std::stof(time);
- std::stringstream sstime;
- sstime << std::put_time(std::gmtime(&t), "%F") << 'n';
- Poco::Data::Statement sql_insert(*session);
- sql_insert << "INSERT into history (uid, time)
- VALUES (?,?)",
- Poco::Data::Keywords::bind(uid),
- Poco::Data::Keywords::bind(sstime.str());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement