# Barcode.CalendarDateTime

public static class **Barcode.CalendarDateTime** extends [Object](https://developer.android.com/reference/java/lang/Object.html)  
DateTime data type used in calendar events. If hours/minutes/seconds are not specified in
the barcode value, they will be set to -1.

### Public Method Summary

|---|---|
| int | [getDay](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getDay())() Gets the day of the calendar date time. |
| int | [getHours](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getHours())() Gets the hours of the calendar date time. |
| int | [getMinutes](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getMinutes())() Gets the minutes of the calendar date time. |
| int | [getMonth](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getMonth())() Gets the month of the calendar date time. |
| [String](https://developer.android.com/reference/java/lang/String.html) | [getRawValue](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getRawValue())() Gets the raw value as it was encoded in the barcode. |
| int | [getSeconds](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getSeconds())() Gets the seconds of the calendar date time. |
| int | [getYear](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#getYear())() Gets the year of the calendar date time. |
| boolean | [isUtc](https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.CalendarDateTime#isUtc())() Gets whether the date time is UTC. |

### Inherited Method Summary

From class java.lang.Object

|---|---|
| [Object](https://developer.android.com/reference/java/lang/Object.html) | clone() |
| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object.html) arg0) |
| void | finalize() |
| final [Class](https://developer.android.com/reference/java/lang/Class.html)\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| [String](https://developer.android.com/reference/java/lang/String.html) | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public int **getDay** ()

Gets the day of the calendar date time.

#### public int **getHours** ()

Gets the hours of the calendar date time.

#### public int **getMinutes** ()

Gets the minutes of the calendar date time.

#### public int **getMonth** ()

Gets the month of the calendar date time.

#### public [String](https://developer.android.com/reference/java/lang/String.html) **getRawValue** ()

Gets the raw value as it was encoded in the barcode.

Structured values are not parsed, for example: '20130131', '20130210T010203',
'20130210T010203Z'. Please refer to [here](https://www.ietf.org/rfc/rfc2445.txt)
for more details.

Returns `null` if the raw value can not be determined.

#### public int **getSeconds** ()

Gets the seconds of the calendar date time.

#### public int **getYear** ()

Gets the year of the calendar date time.

#### public boolean **isUtc** ()

Gets whether the date time is UTC.