# DatatypeConstants

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

# DatatypeConstants

```
class DatatypeConstants
```

|---|------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                               ||
| ↳ | [javax.xml.datatype.DatatypeConstants](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#) |

Utility class to contain basic Datatype values as constants.

## Summary

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

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

|                                                                                                                                                          Properties                                                                                                                                                          ||
|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [DATE](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DATE:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                           |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [DATETIME](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DATETIME:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                   |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [DAYS](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DAYS:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the days field.          |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [DURATION](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DURATION:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema datatype`duration`.  |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [DURATION_DAYTIME](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DURATION_DAYTIME:javax.xml.namespace.QName) Fully qualified name for XQuery 1.           |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [DURATION_YEARMONTH](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#DURATION_YEARMONTH:javax.xml.namespace.QName) Fully qualified name for XQuery 1.       |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [GDAY](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#GDAY:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                           |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [GMONTH](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#GMONTH:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                       |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [GMONTHDAY](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#GMONTHDAY:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                 |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [GYEAR](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#GYEAR:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                         |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [GYEARMONTH](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#GYEARMONTH:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.               |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [HOURS](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#HOURS:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the hours field.       |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [MINUTES](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#MINUTES:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the minutes field. |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [MONTHS](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#MONTHS:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the months field.    |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [SECONDS](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#SECONDS:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the seconds field. |
| static[QName](https://developer.android.com/reference/kotlin/javax/xml/namespace/QName.html#)!                              | [TIME](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#TIME:javax.xml.namespace.QName) Fully qualified name for W3C XML Schema 1.                           |
| static[DatatypeConstants.Field](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants.Field)! | [YEARS](https://developer.android.com/reference/kotlin/javax/xml/datatype/DatatypeConstants#YEARS:javax.xml.datatype.DatatypeConstants.Field) A constant that represents the years field.       |

## Constants

### APRIL

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

```
static val APRIL: Int
```

Value for fourth month of year.  

    Value: 4

### AUGUST

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

```
static val AUGUST: Int
```

Value for eighth month of year.  

    Value: 8

### DECEMBER

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

```
static val DECEMBER: Int
```

Value for twelve month of year.  

    Value: 12

### EQUAL

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

```
static val EQUAL: Int
```

Comparison result.  

    Value: 0

### FEBRUARY

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

```
static val FEBRUARY: Int
```

Value for second month of year.  

    Value: 2

### FIELD_UNDEFINED

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

```
static val FIELD_UNDEFINED: Int
```

Designation that an "int" field is not set.  

    Value: -2147483648

### GREATER

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

```
static val GREATER: Int
```

Comparison result.  

    Value: 1

### INDETERMINATE

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

```
static val INDETERMINATE: Int
```

Comparison result.  

    Value: 2

### JANUARY

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

```
static val JANUARY: Int
```

Value for first month of year.  

    Value: 1

### JULY

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

```
static val JULY: Int
```

Value for seventh month of year.  

    Value: 7

### JUNE

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

```
static val JUNE: Int
```

Value for sixth month of year.  

    Value: 6

### LESSER

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

```
static val LESSER: Int
```

Comparison result.  

    Value: -1

### MARCH

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

```
static val MARCH: Int
```

Value for third month of year.  

    Value: 3

### MAX_TIMEZONE_OFFSET

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

```
static val MAX_TIMEZONE_OFFSET: Int
```

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

    Value: -840

### MAY

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

```
static val MAY: Int
```

Value for fifth month of year.  

    Value: 5

### MIN_TIMEZONE_OFFSET

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

```
static val MIN_TIMEZONE_OFFSET: Int
```

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

    Value: 840

### NOVEMBER

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

```
static val NOVEMBER: Int
```

Value for eleven month of year.  

    Value: 11

### OCTOBER

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

```
static val OCTOBER: Int
```

Value for tenth month of year.  

    Value: 10

### SEPTEMBER

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

```
static val SEPTEMBER: Int
```

Value for ninth month of year.  

    Value: 9

## Properties

### DATE

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

```
static val DATE: QName!
```

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

### DATETIME

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

```
static val DATETIME: QName!
```

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

### DAYS

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

```
static val DAYS: DatatypeConstants.Field!
```

A constant that represents the days field.  

### DURATION

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

```
static val DURATION: QName!
```

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

### DURATION_DAYTIME

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

```
static val DURATION_DAYTIME: QName!
```

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

### DURATION_YEARMONTH

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

```
static val DURATION_YEARMONTH: QName!
```

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

### GDAY

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

```
static val GDAY: QName!
```

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

### GMONTH

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

```
static val GMONTH: QName!
```

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

### GMONTHDAY

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

```
static val GMONTHDAY: QName!
```

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

### GYEAR

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

```
static val GYEAR: QName!
```

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

### GYEARMONTH

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

```
static val GYEARMONTH: QName!
```

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

### HOURS

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

```
static val HOURS: DatatypeConstants.Field!
```

A constant that represents the hours field.  

### MINUTES

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

```
static val MINUTES: DatatypeConstants.Field!
```

A constant that represents the minutes field.  

### MONTHS

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

```
static val MONTHS: DatatypeConstants.Field!
```

A constant that represents the months field.  

### SECONDS

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

```
static val SECONDS: DatatypeConstants.Field!
```

A constant that represents the seconds field.  

### TIME

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

```
static val TIME: QName!
```

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

### YEARS

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

```
static val YEARS: DatatypeConstants.Field!
```

A constant that represents the years field.