Lasso Soft Inc. > Home

[ locale_canada ]

Method

The [locale_canada] method defines a locale with language "en" and a country of "CA".

This method is shorthand for locale('en', 'CA').

  • Syntax
locale_canada
Examples
  • Beginner

Set the locale to the default settings for English Canada

Use the [locale_canada] method. This example sets a locale to the default, updates it to [locale_canada] and outputs the difference. (since the documentor is in english Canada there is no difference in the outputs.)

Code

var(myLocale = locale_default,
     myDate = date)

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

$myLocale = locale_canada

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

Result

en_CA: 2011-02-12
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 2014 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft