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 for Locale.Category.FORMAT 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. If no week definition parameters are explicitly given by a call to the setWeekDefinition method, the Locale's default values are used.
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.