Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. std::time_t t = std::stof(time);
  2. std::stringstream sstime;
  3. sstime << std::put_time(std::gmtime(&t), "%F") << 'n';
  4. Poco::Data::Statement sql_insert(*session);
  5. sql_insert << "INSERT into history (uid, time)
  6. VALUES (?,?)",
  7. Poco::Data::Keywords::bind(uid),
  8.  
  9. Poco::Data::Keywords::bind(sstime.str());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement