The [locale_us] method defines a locale with language "en" and country "US".
This method is shorthand for locale('en', 'US').
locale_us
Use the [locale_us] method. This example sets a locale to the default, updates it to [locale_us] and outputs the difference.
Code
local(myLocale = locale_default,
myDate = date)
#myLocale->asString +': '+#myLocale->format(#myDate)+'\n'
#myLocale = locale_us
#myLocale->asString +': '+#myLocale->format(#myDate)+'\n'
Result
en_CA: 2011-02-12 en_US: Feb 12, 2011
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments