# DatatypeConstants

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  
Summary:[Nested Classes](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#nestedclasses)\|[Constants](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#constants)\|[Fields](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#lfields)\|[Inherited Methods](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#inhmethods)  

# DatatypeConstants

`
public

final

class
DatatypeConstants
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|--------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | javax.xml.datatype.DatatypeConstants |

<br />

*** ** * ** ***

<br />

Utility class to contain basic Datatype values as constants.

<br />

## Summary

|                                                                                                                         ### Nested classes                                                                                                                          ||
|----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` class` | [DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) Type-safe enum class that represents six fields of the[Duration](https://developer.android.com/reference/javax/xml/datatype/Duration)class. |

|                                                                                ### Constants                                                                                 ||
|-------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [APRIL](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#APRIL) Value for fourth month of year.                                           |
| `int` | [AUGUST](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#AUGUST) Value for eighth month of year.                                         |
| `int` | [DECEMBER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DECEMBER) Value for twelve month of year.                                     |
| `int` | [EQUAL](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#EQUAL) <br /> Comparison result.                                                 |
| `int` | [FEBRUARY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#FEBRUARY) Value for second month of year.                                     |
| `int` | [FIELD_UNDEFINED](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#FIELD_UNDEFINED) Designation that an "int" field is not set.           |
| `int` | [GREATER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GREATER) <br /> Comparison result.                                             |
| `int` | [INDETERMINATE](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#INDETERMINATE) <br /> Comparison result.                                 |
| `int` | [JANUARY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#JANUARY) Value for first month of year.                                        |
| `int` | [JULY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#JULY) Value for seventh month of year.                                            |
| `int` | [JUNE](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#JUNE) Value for sixth month of year.                                              |
| `int` | [LESSER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#LESSER) <br /> Comparison result.                                               |
| `int` | [MARCH](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MARCH) Value for third month of year.                                            |
| `int` | [MAX_TIMEZONE_OFFSET](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MAX_TIMEZONE_OFFSET) W3C XML Schema max timezone offset is -14:00. |
| `int` | [MAY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MAY) Value for fifth month of year.                                                |
| `int` | [MIN_TIMEZONE_OFFSET](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MIN_TIMEZONE_OFFSET) W3C XML Schema min timezone offset is +14:00. |
| `int` | [NOVEMBER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#NOVEMBER) Value for eleven month of year.                                     |
| `int` | [OCTOBER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#OCTOBER) Value for tenth month of year.                                        |
| `int` | [SEPTEMBER](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#SEPTEMBER) Value for ninth month of year.                                    |

|                                                                                                                                                                    ### Fields                                                                                                                                                                     ||
|--------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [DATE](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DATE) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`date`.                                                |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [DATETIME](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DATETIME) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`dateTime`.                                    |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [DAYS](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DAYS) <br /> A constant that represents the days field.                                                                 |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [DURATION](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DURATION) <br /> Fully qualified name for W3C XML Schema datatype`duration`.                                        |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [DURATION_DAYTIME](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DURATION_DAYTIME) <br /> Fully qualified name for XQuery 1.0 and XPath 2.0 datatype`dayTimeDuration`.       |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [DURATION_YEARMONTH](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#DURATION_YEARMONTH) <br /> Fully qualified name for XQuery 1.0 and XPath 2.0 datatype`yearMonthDuration`. |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [GDAY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GDAY) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`gDay`.                                                |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [GMONTH](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GMONTH) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`gMonth`.                                          |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [GMONTHDAY](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GMONTHDAY) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`gMonthDay`.                                 |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [GYEAR](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GYEAR) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`gYear`.                                             |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [GYEARMONTH](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#GYEARMONTH) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`gYearMonth`.                              |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [HOURS](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#HOURS) <br /> A constant that represents the hours field.                                                              |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [MINUTES](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MINUTES) <br /> A constant that represents the minutes field.                                                        |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [MONTHS](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#MONTHS) <br /> A constant that represents the months field.                                                           |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [SECONDS](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#SECONDS) <br /> A constant that represents the seconds field.                                                        |
| ` public static final `[QName](https://developer.android.com/reference/javax/xml/namespace/QName)                                    | [TIME](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#TIME) <br /> Fully qualified name for W3C XML Schema 1.0 datatype`time`.                                                |
| ` public static final `[DatatypeConstants.Field](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants.Field) | [YEARS](https://developer.android.com/reference/javax/xml/datatype/DatatypeConstants#YEARS) <br /> A constant that represents the years field.                                                              |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](https://developer.android.com/reference/java/lang/Object#finalize())`() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.                                                          | | ` final `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long,%20int))`(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed. | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait(long))`(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*, or until a certain amount of real time has elapsed.                   | | ` final void`                                                                  | ` `[wait](https://developer.android.com/reference/java/lang/Object#wait())`() ` Causes the current thread to wait until it is awakened, typically by being*notified* or*interrupted*.                                                                                             | ||

## Constants

### APRIL

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int APRIL
```

Value for fourth month of year.

<br />

Constant Value: 4 (0x00000004)  

### AUGUST

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int AUGUST
```

Value for eighth month of year.

<br />

Constant Value: 8 (0x00000008)  

### DECEMBER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int DECEMBER
```

Value for twelve month of year.

<br />

Constant Value: 12 (0x0000000c)  

### EQUAL

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int EQUAL
```

<br />

Comparison result.

<br />

<br />

Constant Value: 0 (0x00000000)  

### FEBRUARY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FEBRUARY
```

Value for second month of year.

<br />

Constant Value: 2 (0x00000002)  

### FIELD_UNDEFINED

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int FIELD_UNDEFINED
```

Designation that an "int" field is not set.

<br />

Constant Value: -2147483648 (0x80000000)  

### GREATER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int GREATER
```

<br />

Comparison result.

<br />

<br />

Constant Value: 1 (0x00000001)  

### INDETERMINATE

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int INDETERMINATE
```

<br />

Comparison result.

<br />

<br />

Constant Value: 2 (0x00000002)  

### JANUARY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JANUARY
```

Value for first month of year.

<br />

Constant Value: 1 (0x00000001)  

### JULY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JULY
```

Value for seventh month of year.

<br />

Constant Value: 7 (0x00000007)  

### JUNE

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int JUNE
```

Value for sixth month of year.

<br />

Constant Value: 6 (0x00000006)  

### LESSER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int LESSER
```

<br />

Comparison result.

<br />

<br />

Constant Value: -1 (0xffffffff)  

### MARCH

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MARCH
```

Value for third month of year.

<br />

Constant Value: 3 (0x00000003)  

### MAX_TIMEZONE_OFFSET

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MAX_TIMEZONE_OFFSET
```

W3C XML Schema max timezone offset is -14:00. Zone offset is in minutes.

<br />

Constant Value: -840 (0xfffffcb8)  

### MAY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MAY
```

Value for fifth month of year.

<br />

Constant Value: 5 (0x00000005)  

### MIN_TIMEZONE_OFFSET

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int MIN_TIMEZONE_OFFSET
```

W3C XML Schema min timezone offset is +14:00. Zone offset is in minutes.

<br />

Constant Value: 840 (0x00000348)  

### NOVEMBER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int NOVEMBER
```

Value for eleven month of year.

<br />

Constant Value: 11 (0x0000000b)  

### OCTOBER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int OCTOBER
```

Value for tenth month of year.

<br />

Constant Value: 10 (0x0000000a)  

### SEPTEMBER

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int SEPTEMBER
```

Value for ninth month of year.

<br />

Constant Value: 9 (0x00000009)

## Fields

### DATE

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName DATE
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`date`.

<br />

<br />

### DATETIME

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName DATETIME
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`dateTime`.

<br />

<br />

### DAYS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field DAYS
```

<br />

A constant that represents the days field.

<br />

<br />

### DURATION

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName DURATION
```

<br />

Fully qualified name for W3C XML Schema datatype`duration`.

<br />

<br />

### DURATION_DAYTIME

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName DURATION_DAYTIME
```

<br />

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype`dayTimeDuration`.

<br />

<br />

### DURATION_YEARMONTH

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName DURATION_YEARMONTH
```

<br />

Fully qualified name for XQuery 1.0 and XPath 2.0 datatype`yearMonthDuration`.

<br />

<br />

### GDAY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName GDAY
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`gDay`.

<br />

<br />

### GMONTH

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName GMONTH
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`gMonth`.

<br />

<br />

### GMONTHDAY

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName GMONTHDAY
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`gMonthDay`.

<br />

<br />

### GYEAR

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName GYEAR
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`gYear`.

<br />

<br />

### GYEARMONTH

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName GYEARMONTH
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`gYearMonth`.

<br />

<br />

### HOURS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field HOURS
```

<br />

A constant that represents the hours field.

<br />

<br />

### MINUTES

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field MINUTES
```

<br />

A constant that represents the minutes field.

<br />

<br />

### MONTHS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field MONTHS
```

<br />

A constant that represents the months field.

<br />

<br />

### SECONDS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field SECONDS
```

<br />

A constant that represents the seconds field.

<br />

<br />

### TIME

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final QName TIME
```

<br />

Fully qualified name for W3C XML Schema 1.0 datatype`time`.

<br />

<br />

### YEARS

Added in[API level 8](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final DatatypeConstants.Field YEARS
```

<br />

A constant that represents the years field.

<br />

<br />