Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why are some format specifiers unavailable in strftime in Visual Studio 2010?

I want to use the function strftime() from <ctime> to print the time in the ISO 8601 UTC format, e.g. 2016-01-12T10:37:20Z.

According to the standard cplusplus, the format string %FT%TZ produces the same as "%Y-%m-%dT%H:%M:%SZ", but Visual Studio 2010 does not know the format specifiers %F and %T. Why is that? They seem to have forgotten them?!

like image 516
Fabian Avatar asked Dec 02 '25 07:12

Fabian


1 Answers

Those features were introduced to standard C in C99, and to C++ in C++11.

It seems that Visual Studio 2010 supports neither of those standards.

like image 120
user694733 Avatar answered Dec 04 '25 22:12

user694733



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!