<t>Si la précision à la seconde près est suffisante, vous pouvez utiliser strftime :<br/>
<br/>
#include <br/>
#include <br/>
<br/>
int main() {<br/>
time_t now;<br/>
time(&now);<br/>
char buf[sizeof "2011-10-08T07:07:09Z"];<br/>
strftime(buf, sizeof buf, "%FT%TZ", gmtime(&now));<br/>
// this will work too, if your compiler doesn't support %F or %T:<br/>
//strftime(buf, sizeof buf, "%Y-%m-%dT%H:%M:%SZ", gmtime(&now));<br/>
std::cout <br/>
#include <br/>
<br/>
int main() {<br/>
using namespace</t>