Calendar.Builder.SetLocale(Locale) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the locale parameter to the given locale.
[Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)Ljava/util/Calendar$Builder;", "GetSetLocale_Ljava_util_Locale_Handler", ApiSince=26)]
public virtual Java.Util.Calendar.Builder SetLocale(Java.Util.Locale locale);
[<Android.Runtime.Register("setLocale", "(Ljava/util/Locale;)Ljava/util/Calendar$Builder;", "GetSetLocale_Ljava_util_Locale_Handler", ApiSince=26)>]
abstract member SetLocale : Java.Util.Locale -> Java.Util.Calendar.Builder
override this.SetLocale : Java.Util.Locale -> Java.Util.Calendar.Builder
Parameters
- locale
- Locale
the Locale
Returns
this Calendar.Builder
- Attributes
Remarks
Sets the locale parameter to the given locale. If no locale is given to this Calendar.Builder, the default Locale will be used. If no calendar type is explicitly given by a call to the setCalendarType method, the Locale value is used to determine what type of Calendar to be built. For the "gregory" type, the locale's week definition is used unless one is explicitly set. The "iso8601" type uses Monday and four days in the first week.
Java reference for java.util.Calendar.Builder.setLocale.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.