flusspferd::string JS_sqlEncodeQuoteDate(flusspferd::object dateTime) { flusspferd::value timeMillisecondsVal = dateTime.call("getTime"); long long timeMilliseconds = (long long)timeMillisecondsVal.get_double(); return std::string("'") + MiscUtil::formatDateYYYYdmmdddHHcMMcSS(DateTime(timeMilliseconds / 1000)) + std::string("'"); }
// This function prints the contents of 'this' on the screen. void print_object(flusspferd::object &o) { std::cout << o.call("toSource") << '\n'; }