[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5 Locales

Procedures related locales.

Function: current-locale

returns the current locale.

Function: current-country [country]
Function: current-language [language]
Function: current-locale-details [details …]

[SRFI-29] sets country code, language code and locale details, respectively.

Function: available-locales

returns the list of all avaliable locales.

Function: iso-countries
Function: iso-languages

returns country codes and language codes, respectively.

Special Form: locale language [country] [variant]

creates a locale.
The arguments must be symbols because this is a special form.

Function: make-locale language [country] [variant]

creates a locale
Constant symbols as an argument must be quoted because this is a procedure.

Function: locale-country locale
Function: locale-language locale
Function: locale-variant locale
Function: locale-iso3-country locale
Function: locale-iso3-language locale

returns a country code, a language code, a variant, an ISO3 country code and an ISO3 language code of the given locale, respectively.

Function: locale-country-name locale locale2
Function: locale-language-name locale locale2
Function: locale-variant-name locale locale2

returns the name of locale expressed under the locale2

Function: print-date format-string date [locale]

formats a SRFI-19 date by format-string.
format-string is the same as java.text.SimpleDateFormat.

Function: parse-date format-string string [locale]

parses the string by format-string and returns the parsed SRFI-19 date.
format-string is the same as java.text.SimpleDateFormat.


[ << ] [ < ] [ Up ] [ > ] [ >> ]

This document was generated on August 9, 2012 using texi2html 5.0.