Century in swedish personal identity number#964
Century in swedish personal identity number#964jongotlin wants to merge 4 commits intoFakerPHP:2.0from
Conversation
|
I'm not sure if it matters, but the way to indicate which century a personal number format belongs to is a + sign. Most systems do not use this format, though. A person with a personal number 25XXXX+XXXX is born in 1925, and 25XXXX-XXXX is born in 2025. This is stated in §18 in folkbokföringslagen. I have no clue how that will sort 21XX, but maybe they did not think it would last that far. Edit: After a quick re-read, it is stated that if it is not cumbersome, the year should be stored with 4 digits. This is an amendment to the law which was enacted in 2009. Since the + format is stated above and still valid, the amendment just adds that the format for digits should be stored if not cumbersome seems to be 1925XXX+XXXX, which I have never seen someone use. https://www4.skatteverket.se/rattsligvagledning/28831.html?date=2025-01-01 |
|
I haven't seen any implementation using +-. Plus sign doesn't indicate century but if the person is 100+ years old. Sure it can be added as an optional parameter here but since no one is using it lets wait until it's requested. |
Sounds great to wait. I have not seen the +/- sign usage either, and, strangely, it seems to be kept even when (since the law does not say otherwise) four digits are used for the year. Sure, the +/- is not used explicitly for century, but the effect is that it differentiates between the current century and the former century, or as you say, that the person is 100 or more years old |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 1 week if no further activity occurs. Thank you for your contributions. |
|
Any chance this can get merged? |
- en_GB: preserve leading zeros in VAT check digits (FakerPHP#970) - tr_TR: fix T.C. ID generation - no leading zero, handle negative modulo (FakerPHP#967) - sv_SE: add optional century to personal identity number (FakerPHP#964)
What is the reason for this PR?
Sometimes you need the full identity number (with century). For example when working with Swedish Bank ID.
Author's checklist
Review checklist
CHANGELOG.md