MrzDate
data class MrzDate(val rawYear: String, val rawMonth: String, val rawDay: String, val computedYear: Int? = null, val computedDate: LocalDate? = null, val inferenceMethod: MrzDateInferenceMethod = MrzDateInferenceMethod.RAW_ONLY, val componentsFormCalendarDate: Boolean? = null)
An MRZ date: the printed year, month, and day, plus an inferred full date.
toString() shows no document values; they are in the properties.
Since
0.1.0
Constructors
Types
Properties
Link copied to clipboard
true if the components form a real date in the 2000s or the 1900s, false if they form none, null if they are not two-digit numbers. Default: null.
Link copied to clipboard
The full date. null if inferenceMethod is MrzDateInferenceMethod.RAW_ONLY.
Link copied to clipboard
The four-digit year chosen by century inference. null if inferenceMethod is MrzDateInferenceMethod.RAW_ONLY.
Link copied to clipboard
How the century was chosen. Default: MrzDateInferenceMethod.RAW_ONLY.