Date

data class Date(val year: Int?, val month: Int?, val day: Int?)

Represents a date extracted from a Machine Readable Zone (MRZ) according to the ICAO Doc 9303.

The date typically represents the date of birth or expiration date of a travel document.

Any component may be null when the corresponding part of the MRZ field was absent (filled with < filler characters), for example a date of expiry that only specifies the year.

Constructors

Link copied to clipboard
constructor(year: Int?, month: Int?, day: Int?)

Properties

Link copied to clipboard
val day: Int?

The day component of the date, or null when absent in the MRZ.

Link copied to clipboard
val month: Int?

The month component of the date, or null when absent in the MRZ.

Link copied to clipboard
val year: Int?

The year component of the date, or null when absent in the MRZ.