Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/se/personnummer.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix misleading docstring in se.personnummer get_birth_date()Leon Sandøy2020-03-011-3/+7
| | | | | | | | | | | The docstring for get_birth_date() in the Swedish personnummer.py warned that the datetime might be 100 years off because of the lack of precision in the personnummer. This was accurate when the docstring was written, but this is no longer accurate after the - and + signs were correctly handled. Fixes 5441ffa
* Fix issue with extra plus or minus in se.personnummerArthur de Jong2020-02-121-8/+4
| | | | | Fixes 5441ffa Closes https://github.com/arthurdejong/python-stdnum/issues/188
* Handle - and + sign correctly in Swedish PersonnummerAmin Solhizadeh2019-10-131-9/+21
| | | | | | | | | | | For people aged 100 and up, the minus/dash in the personnummer is changed to a plus, on new year's eve the year they turn 100. See Folkbokföringslagen (1991:481), §18. This makes the - or + sign part of the number. Closes https://github.com/arthurdejong/python-stdnum/issues/156 Closes https://github.com/arthurdejong/python-stdnum/pull/160
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-2/+2
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Add Swedish PersonnummerIlya Vihtinsky2018-12-241-0/+113
Closes https://github.com/arthurdejong/python-stdnum/pull/88