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.

Constructors

Link copied to clipboard
fun Date(year: Int, month: Int, day: Int)

Properties

Link copied to clipboard
val day: Int

The day component of the date.

Link copied to clipboard
val month: Int

The month component of the date.

Link copied to clipboard
val year: Int

The year component of the date.