I am using this code for saving a screenshot
Size size = Director::getInstance()->getWinSize();
auto renderTexture = RenderTexture::create((size.width/5)*3.98, (size.height/5)*3.45, Texture2D::PixelFormat::RGBA8888);
renderTexture->beginWithClear(0.0f, 0.0f, 0.0f, 0.0f);
Director::getInstance()->getRunningScene()->visit();
renderTexture->end();
renderTexture->saveToFile("screenshot.png" , kCCImageFormatPNG);
How can I save the image file using current system time as the filename like " screenshot" + current time +".png"?