Hacker News new | past | comments | ask | show | jobs | submit login

In South Africa our national I.D. (Identity Document) numbers, which you are given at birth or given when becoming a resident, starts with YYMMDD.

When I was working on a hotel management system a while back and implemented logic of automatically determining date of birth from an I.D. number I had to think about this exact kind of problem.

Not sure if it was privacy laws, or that children always need to be checked in under their parent's details, but the hotel chain had a rule where they would never capture anything except the first name of guests under the age of 16, meaning that only if a South African guest was 116 years or older would it incorrectly assume the wrong age, which would be exceedingly rare and according to [1], not possible for at least 5 more years.

Airlines however need to capture details of passengers of any age, so our solution could not be used there.

[1]: https://en.wikipedia.org/wiki/List_of_the_verified_oldest_pe...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: