示例#1
0
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("'");
	
}
示例#2
0
// This function prints the contents of 'this' on the screen.
void print_object(flusspferd::object &o) {
    std::cout << o.call("toSource") << '\n';
}