parseBirth

fun parseBirth(rawYear: String, rawMonth: String, rawDay: String, referenceTime: Instant = Clock.System.now()): MrzDate

Parses a birth date and infers its century.

Return

A date with MrzDate.computedDate set from the first of the 2000s and the 1900s whose date is not after the reference time and at most 130 years before it. If neither fits, only the printed components are set and the method is MrzDateInferenceMethod.RAW_ONLY.

Parameters

rawYear

The two year characters.

rawMonth

The two month characters.

rawDay

The two day characters.

referenceTime

The moment to judge against, compared as a UTC date. Default: the system clock.