Internationalization and localization tools


Windows Generic C/C++ Date and Time Functions

Internationalization (I18n) Issue:

These functions are the Generic versions of the single-byte and wide character string time and date functions. To operate correctly, generic arguments and return values should be used.

I18n Solution:

Use the appropriate equivalent Windows Generic time/date function when reengineering an application for internationalization to correctly accommodate generic string arguments.

I18n Discussion:

When a Generic function call is used, the _MBCS or _UNICODE compiler switch determines whether to map to the multibyte or wide version of the function. For example, _tctime will map to ctime if the _MBCS compiler switch is defined, and to _wctime if the _UNICODE switch is defined.

The arguments and return values for these functions are also Generic and dependent on the _MBCS/_UNICODE switch for their mapping to either narrow or wide-character data.

See the MSDN Library's Using Generic Text Mappings for more information.

Click on a function for more information:

_tasctime

_tcsftime

_tctime

_tctime64

_tstrdate

_tstrtime

 

 Locale-Sensitive C++ Methods

 

Lingoport internationalization and localization services and software