කෙනෙක්ගේ ID නම්බර්

King kekille

Well-known member
  • Jun 27, 2016
    2,926
    2,477
    113
    Austria
    මූට මේ සිරි ලංකාවේ කරන්න පුළුවන් හොදම සහ ප්‍රයෝගිකම විසදුම් දෙක මම පුද්ගලිකව දීලා තියෙන්නේ.
    උබට ඒවගෙන් වැඩක් නැත්නම් ඕන උට්ටක් කරගනින් :ROFLMAO:
    ඔබ දැක්වූ සහයෝගයට ස්තූතී..පොඩ්ඩක් බයයි බන් ඩී ටේල්ස් දෙන්න..පොඩ්ඩ මිස් උනොත් මාව ඉවරම කරයි.

    Date of Birth kiyannko,
    Date of birth kiwwama kohomada bn id eka hoyanne.
    ------ Post added on Feb 26, 2024 at 2:13 PM
     

    Mr Bones

    Well-known member
  • Mar 13, 2023
    16,714
    1
    32,946
    113
    ඔබ දැක්වූ සහයෝගයට ස්තූතී..පොඩ්ඩක් බයයි බන් ඩී ටේල්ස් දෙන්න..පොඩ්ඩ මිස් උනොත් මාව ඉවරම කරයි.


    Date of birth kiwwama kohomada bn id eka hoyanne.
    ------ Post added on Feb 26, 2024 at 2:13 PM
    date of birth eken ID number eka hadabanna puluwan ne
     
    • Like
    Reactions: King kekille

    Mr Bones

    Well-known member
  • Mar 13, 2023
    16,714
    1
    32,946
    113
    Eka dawase eka awurudde ipaduna ki denek innawada?
    ChatGPT answser


    In Sri Lanka, the National Identity Card (NIC) number is derived from the birth date, along with other components such as district and gender codes. The format for a Sri Lankan NIC number is ABBBBBBCD where:

    • A: First letter of the last name (in Sinhala or Tamil script)
    • BBBBB: Sequential number based on birth date (YYMMDD format)
    • C: A checksum digit
    • D: Gender code (1 for male, 2 for female)
    To convert a birth date to a Sri Lankan NIC number, you would need to follow these steps:

    1. Extract the components of the birth date: year (YY), month (MM), and day (DD).
    2. Convert the year, month, and day to YY, MM, and DD respectively.
    3. Concatenate YYMMDD to form the sequential number part of the NIC.
    4. Add the checksum digit.
    5. Add the gender code (1 for male, 2 for female).
    6. Finally, prepend the first letter of the last name in Sinhala or Tamil script.
    Here's an example in Python:

    pythonCopy code
    def generate_sri_lankan_nic(last_name, birth_date, gender):
    # Extracting components of birth date
    year = str(birth_date.year)[-2:]
    month = '{:02d}'.format(birth_date.month)
    day = '{:02d}'.format(birth_date.day)

    # Generating sequential number (YYMMDD)
    sequential_number = year + month + day

    # Calculating checksum digit
    checksum = 0
    for i in range(len(sequential_number)):
    checksum += int(sequential_number) * (9 - i)
    checksum %= 10

    # Determining gender code
    gender_code = '1' if gender.lower() == 'male' else '2'

    # Generating NIC number
    nic_number = last_name[0] + sequential_number + str(checksum) + gender_code

    return nic_number

    # Example usage
    last_name = "මාර්තු"
    birth_date = datetime.date(1990, 5, 15) # Example birth date
    gender = "male" # Example gender
    nic_number = generate_sri_lankan_nic(last_name, birth_date, gender)
    print("Sri Lankan NIC Number:", nic_number)

    Replace the last_name, birth_date, and gender variables with the appropriate values. This script will generate a Sri Lankan NIC number based on the given information.
     
    • Like
    Reactions: King kekille

    Lejayange

    Well-known member
  • Mar 23, 2015
    18,950
    5,584
    113
    පොර ලංකාවේ නැහැ.
    මේල් එකක් ‍යවපන් බන්... පාස්පෝට් එකේ තියනවා... නැත්නම් වට්සැප් පාරක් දාපන්...
     

    King kekille

    Well-known member
  • Jun 27, 2016
    2,926
    2,477
    113
    Austria
    ChatGPT answser


    In Sri Lanka, the National Identity Card (NIC) number is derived from the birth date, along with other components such as district and gender codes. The format for a Sri Lankan NIC number is ABBBBBBCD where:

    • A: First letter of the last name (in Sinhala or Tamil script)
    • BBBBB: Sequential number based on birth date (YYMMDD format)
    • C: A checksum digit
    • D: Gender code (1 for male, 2 for female)
    To convert a birth date to a Sri Lankan NIC number, you would need to follow these steps:

    1. Extract the components of the birth date: year (YY), month (MM), and day (DD).
    2. Convert the year, month, and day to YY, MM, and DD respectively.
    3. Concatenate YYMMDD to form the sequential number part of the NIC.
    4. Add the checksum digit.
    5. Add the gender code (1 for male, 2 for female).
    6. Finally, prepend the first letter of the last name in Sinhala or Tamil script.
    Here's an example in Python:

    pythonCopy code
    def generate_sri_lankan_nic(last_name, birth_date, gender):
    # Extracting components of birth date
    year = str(birth_date.year)[-2:]
    month = '{:02d}'.format(birth_date.month)
    day = '{:02d}'.format(birth_date.day)

    # Generating sequential number (YYMMDD)
    sequential_number = year + month + day

    # Calculating checksum digit
    checksum = 0
    for i in range(len(sequential_number)):
    checksum += int(sequential_number) * (9 - i)
    checksum %= 10

    # Determining gender code
    gender_code = '1' if gender.lower() == 'male' else '2'

    # Generating NIC number
    nic_number = last_name[0] + sequential_number + str(checksum) + gender_code

    return nic_number

    # Example usage
    last_name = "මාර්තු"
    birth_date = datetime.date(1990, 5, 15) # Example birth date
    gender = "male" # Example gender
    nic_number = generate_sri_lankan_nic(last_name, birth_date, gender)
    print("Sri Lankan NIC Number:", nic_number)

    Replace the last_name, birth_date, and gender variables with the appropriate values. This script will generate a Sri Lankan NIC number based on the given information.
    පැහැදිලි මදි බන්

    pahu giya tike seen ekak thibba neda ekekge id copy eken uge sime number ekama aran. bank eke password reset karala salli adda seen ekak..
    phone number eka issuwa kliynne hukaris thama
    පරන ත්‍රෙඩ් බලපන්..id dhekak use karana ekek policeyata allala denna mama sakshi hoyanne..uge original id eka man gawa naha..nama gama adress dannawa..uge second id details thiyanawa mage laga..policeta details deddi un ahanawa anith id eke number 1ka..
    ------ Post added on Feb 26, 2024 at 3:06 PM
     

    Thilantdm

    Well-known member
  • Sep 15, 2010
    22,608
    5,867
    113
    අද නම් හදට ආවා
    පැහැදිලි මදි බන්


    පරන ත්‍රෙඩ් බලපන්..id dhekak use karana ekek policeyata allala denna mama sakshi hoyanne..uge original id eka man gawa naha..nama gama adress dannawa..uge second id details thiyanawa mage laga..policeta details deddi un ahanawa anith id eke number 1ka..
    ------ Post added on Feb 26, 2024 at 3:06 PM
    mn danne na ube seen eka nm..

    ape thaththage identity eka nathi wela police compalin dala aluth ekak hadawa gtta. eke id eka wena ekak :lol:
    parana id eka kawru hari post karala ewwa. dn id dekai numbers dekai :lol:
     
    • Like
    Reactions: King kekille

    mr.h0ydr0

    Well-known member
  • Apr 6, 2021
    2,331
    1,892
    113
    මේක කරන්න පුළුවන් ඒත් උබ මොකක්ද මේකෙන් කරන්න යන්නේ කියලා මට PM එකක් දාපන්
    මම ඊට පස්සේ කියන්නම් කරන විදිහ
    ubara attana kiyayi :lol:
     
    • Haha
    Reactions: weere_singhe

    King kekille

    Well-known member
  • Jun 27, 2016
    2,926
    2,477
    113
    Austria
    mn danne na ube seen eka nm..

    ape thaththage identity eka nathi wela police compalin dala aluth ekak hadawa gtta. eke id eka wena ekak :lol:
    parana id eka kawru hari post karala ewwa. dn id dekai numbers dekai :lol:
    Ehema wenna baha..oka waradimak..mama kiyana eka hithamatha karanadeyak..

    Bump
    ------ Post added on Mar 18, 2024 at 10:23 PM