Did you know ... Search Documentation:
Pack uk_plate_age -- prolog/uk_plate_age.pl
PublicShow source

Works out when a vehicle was first registered from the age identifier on a Great Britain number plate, following DVLA leaflet INF104.

  • Current format (September 2001 onwards), e.g. `AB24 CDE`. The two digits are the last two digits of the year from 1 March, and the year plus 50 from 1 September. 51 was the first identifier; 00, 01 and 50 were never issued.
  • Prefix format (August 1983 to August 2001), e.g. `A123 BCD`. The letter changed every August until 1998, then every March and September. I, O, U and Z were not used and Q marks a vehicle of unknown age.

Periods are returned as Year-Month pairs, so 24 gives 2024-3 to 2024-8. A plate only gives a window: private plates can make a vehicle look older (never newer), imports are dated from their first UK registration, and dateless or Northern Ireland plates carry no identifier. The date of first registration on the V5C is the exact answer.

author
- CarCheckHQ team
license
- MIT
 age_identifier_period(?Id:integer, -Start, -End) is nondet
Start and End are Year-Month pairs for a current-format identifier. Fails for identifiers that were never issued.
 prefix_period(?Letter:atom, -Start, -End) is nondet
Registration period for a prefix age letter (upper case atom).
 plate_period(+Plate, -Start, -End) is semidet
Plate is an atom or string in either format. Case and spaces are ignored. Fails if the plate has no age identifier.
 plate_period_text(+Plate, -Text:string) is semidet
Text is the period in words, e.g. "March 2024 to August 2024".
 identifiers_for_year(+Year:integer, -Ids:list(integer)) is semidet
The current-format identifiers first issued in Year (2001 to 2049).