Name
GetLocaleInfo -- get information about locale (V10.0)
Synopsis
t = GetLocaleInfo()
Function
This function can be used to retrieve information about the currently active locale. GetLocaleInfo() will then return a table with the following fields initialized:

DecimalPoint:
Contains the locale's decimal point, e.g. "." on an English and "," on a German system.

ThousandSeparator:
Contains the locale's thousand separator, e.g. "," on an English and "." on a German system.

Currency:
Contains the locale's default currency symbol, e.g. "€" on a German system.

DateFormat:
Contains the long date format template for the current locale. See FormatDate for a description of the individual template constituents.

ShortDateFormat:
Contains the short date format template for the current locale. See FormatDate for a description of the individual template constituents.

TimeFormat:
Contains the time format template for the current locale. See FormatDate for a description of the individual template constituents.

DateTimeFormat:
Contains the combined date and time format template for the current locale. See FormatDate for a description of the individual template constituents.

Days:
Contains an array of the weekday names in the current locale, e.g. "Monday", "Tuesday", etc.

AbDays:
Contains an array of the abbreviated weekday names in the current locale, e.g. "Mon", "Tue", etc.

Months:
Contains an array of the month names in the current locale, e.g. "January", "February", etc.

AbMonths:
Contains an array of the abbreviated month names in the current locale, e.g. "Jan", "Feb", etc.

Language:
The language name in the locale's language, e.g. "deutsch" on a German system. Note that the exact string you get here depends on the host OS so this is not really portable.

Inputs
none

Results
t
table containing locale information
Example
d$ = FormatDate(GetLocaleInfo().DateTimeFormat, GetDate(#DATELOCAL))
DebugPrint(d$)
The code above prints the date and time formatted according to the rules of the current locale.

Show TOC