mstring::MTimeStrings Struct Reference

Contains localized format strings for the conversion of time values. More...

#include <mstring.h>

List of all members.

Public Attributes

const char * locale
char * formatDate
char * formatTime


Detailed Description

Structure definition for the conversion of time values to strings. Used by MString::TIMELOCALES.
The provided format strings are used to convert a time value to its string representation. It has to be strftime() compatible.
See also:
Static array MString::TIMELOCALES, method MString::timeToString(time_t, TimeFormat, const MTimeStrings*).


Member Data Documentation

const char* mstring::MTimeStrings::locale

Locale environment which the following entries apply to. Will be compared with the beginning of the current locale setting. If left blank this set of strings applies to all locales, which means it is the default setting.
E. g. locale="de" applies to "de_DE" environments as well as "de_CH" and "de_AT", but locale="de_CH" does not apply to all "de" environments.

char* mstring::MTimeStrings::formatDate

strftime() compatible format string to generate the string representation of a date.

Important format commands are

Thus the ISO 8601 date format "YYYY-MM-DD" is represented by the format string "%Y-%m-%d".

char* mstring::MTimeStrings::formatTime

strftime() compatible format string to generate the string representation of a time of day.

Important format commands are

Thus the ISO 8601 time format "HH:MM:SS" is represented by the format string "%H:%M:%S".


Generated on Mon Jul 30 23:50:20 2007 for MString by  doxygen 1.5.2