Get the Local Time in C++ Visual Studio 2015 Community -


i have looked on ways current time in c++ console application project, every method have found has been rejected visual studio incorrect or deprecated, #define tags keep program deprecating functions. current method current time in visual studio c++ win32 console application?

you may use datetime::now

using namespace system; using namespace system::globalization;  void main() {    datetime localdate = datetime::now;    array<string^>^ culturenames = { "en-us", "en-gb", "fr-fr",                                     "de-de", "ru-ru" };     each (string^ culturename in culturenames) {       cultureinfo^ culture = gcnew cultureinfo(culturename);       console::writeline("{0}: {1}", culturename,                          localdate.tostring(culture));    } } 

for more information, have msdn


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -