
**Inheritance:**
java.lang.Object
```
public class CurrentThreadSettings
```

This class helps to set thread-isolated Locale and Time Zone for a Aspose.Words application.
## Methods

| Method | Description |
| --- | --- |
| [getLocale()](#getLocale) | Returns java.util.Locale that used by the current Aspose.Words thread. |
| [getTimeZone()](#getTimeZone) | Returns java.util.TimeZone that used by the current Aspose.Words thread. |
| [setLocale(String localeName)](#setLocale-java.lang.String) | Sets java.util.Locale for the current Aspose.Words thread using locale name. |
| [setLocale(Locale locale)](#setLocale-java.util.Locale) | Sets java.util.Locale for the current Aspose.Words thread. |
| [setTimeZone(TimeZone timeZone)](#setTimeZone-java.util.TimeZone) | Sets java.util.TimeZone for the current Aspose.Words thread. |
### getLocale() {#getLocale}
```
public static Locale getLocale()
```


Returns java.util.Locale that used by the current Aspose.Words thread.

**Returns:**
java.util.Locale
### getTimeZone() {#getTimeZone}
```
public static TimeZone getTimeZone()
```


Returns java.util.TimeZone that used by the current Aspose.Words thread.

**Returns:**
java.util.TimeZone
### setLocale(String localeName) {#setLocale-java.lang.String}
```
public static void setLocale(String localeName)
```


Sets java.util.Locale for the current Aspose.Words thread using locale name.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| localeName | java.lang.String |  |

### setLocale(Locale locale) {#setLocale-java.util.Locale}
```
public static void setLocale(Locale locale)
```


Sets java.util.Locale for the current Aspose.Words thread.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| locale | java.util.Locale |  |

### setTimeZone(TimeZone timeZone) {#setTimeZone-java.util.TimeZone}
```
public static void setTimeZone(TimeZone timeZone)
```


Sets java.util.TimeZone for the current Aspose.Words thread.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| timeZone | java.util.TimeZone |  |

