| C/C++ Date and Time Functionschar *asctime(const struct tm *timeptr);
 wchar_t *_wasctime(const struct tm *timeptr);
 TCHAR *_tasctime(const struct tm *timeptr);
 Internationalization (I18n) Function OverviewThe asctimefunction converts the time information into a structure containing exactly 
26 characters. The resulting string is of the formTue Jan 27 13:36:27 1989\n\0 where\nis a new line character and\0is a null character. 
 _wasctimeis supported only on Windows platforms and is the wide-character version of the function; returning a wide-character string.
 _tasctimeis the Windows-only Generic version of the function; with the_MBCSor_UNICODEcompiler flags determining its mapping to eitherasctimeor_wasctime.
 I18n IssuesThese functions should not be relied upon to print error messages in any language other than English, and furthermore they do not take locale into account when formatting the time string.  For these reasons they should be avoided in an internationalized application.  However, its worth noting that in some limited instances they still may be useful.  For example, for debugging, or for writing to log files or consoles that will not be viewed by the end user. Minimally, use strftimeorwcsftimesince they format dates and times using the LC_TIME category of the current locale.  Or, for a more comprehensive solution, consider using the 
ICU package and its 
Date/Time formatting functions. Recommended Replacements* 
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function. 
                C/C++ Date, Time, and Currency Functions    
 |