Lasso Soft Inc. > Home

[ locale_default ]

Method

The [locale_default] method sets a locale to the default locale settings of the server the method is run on.

  • Syntax
locale_default
Examples
  • Beginner

Set the locale to the default settings for the server.

Use the [locale_default] method. This example sets a locale to en_US, updates it to [locale_default] and outputs the difference.

Code

var(myLocale = locale('en','US'),
     myDate = date)

$myLocale->asString +': '+$myLocale->format($myDate)+'\n'

$myLocale = locale_default

$myLocale->asString +': '+$myLocale->format($myDate)+'\n'

Result

en_US: Feb 12, 2011
en_CA: 2011-02-12

Recent Comments

No Comments found

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. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft