Identity Card Number composition rules:
There are 18 ID cards in mainland China and 15 old ones. The principle of how ID card 18th is calculated is as follows: according to the provisions on citizenship numbers in the National Standard of the People's Republic of China (GB 11643-1999), citizenship numbers are feature combination codes, it consists of a 17-digit
received a small request today : A small program that automatically generates an ID number is required. Python is used more recently, so it is intended to be implemented in Python. Requirements Refinement :1. The identity card must be able to pass the ID verification procedure.2. Through the inquiry, found that the identity card
PHP uses the ID card number to obtain the Constellation and zodiac signs. Copy the code as follows :? PhpPHP automatically obtains the corresponding Constellation function functionget_xingzuo ($ cid) based on the ID card number. {automatically returns the corresponding Constellation if (! I
The code is as follows:
For example, how can I query the number of data entries corresponding to the foreign key of a table based on the id of the primary table from the table's reid to the id field of the primary table? For example, if reid is 1 and all point to the row with the primary table id 1, how many data entries can be queried by
functioniscardno (card)
{
// The ID number is 15 or 18 bits, 15 digits are all digits, 18 bits is the first 17 digits, the last one is the check digit, possibly the number or character x
varreg=/(^\d{15}$) | (^\d{18}$) | (^\d{17} (\d| X|X) $)/;
if (reg.test (card) ===false)
{
alert ( "I
There are a number of scenarios and requirements that you need to use a unique identifier for your mobile device.In Android, there are several ways to get such an ID.1. The IMEI: only valid for Android phones:
12
(telephonymanager)getsystemservice(telephony_servicetelephonymgr. Getdeviceid
With this approach, you need to include a license in Androidmanifest.xml: And
check code system. * (1) 17-bit digital body Code weighted summation Formula * S = Sum (Ai * Wi), i = * 0, ..., 16, first 17-digit right sum * Ai: Represents the number value of the ID number on the position of the first place * Wi: Indicates Weighted factor at position I * Wi:7 9 5 8 4 2 1 6 3 7 9 5 8 4 2 1 * (2) calculate modulo Y = mod (S, one) * (3) g
At the beginning of each year, the school should submit materials to the personnel Department for the in-service staff. In Excel will be the staff situation input, can be ID card number This column input the teacher did not set the first column of the cell format as text, resulting in ID number in the input after the s
This article describes how to use php to obtain a series of clues from the ID card number, such as Constellation, Zodiac, and birthday. PHP extracts the birthday from the ID card number and verifies whether it is an adult function, interested friends can refer to the first example of this article to share with you the
Copy Code code as follows:
PHP automatically obtains the corresponding constellation function according to the ID number
function Get_xingzuo ($cid) {//automatically returns the corresponding constellation according to the ID number
if (!isidcard ($cid)) return ";
$bir = substr ($cid, 10,4);
$month = (int) sub
"The origin of the last mystery X of identity card" "Cold knowledge" in the ID card1999-The decision of the State Council on the implementation of the citizenship number system was published, which was implemented on October 1 of the year. Why do some have x? This number is based on the first 17 digits of the checksum code. If someone tail
Financial staff often contact Excel forms, MO is no exception. And the financial staff in the production of wage forms, or personnel departments in the statistical staff data need to enter ID number or bank account, the number can not be fully displayed problems will naturally affect the efficiency.
In fact, the use of WPS Mobile version, open or create a new Ex
Contains the mainland national ID number 15 to 18 digits, identification number validity check and identity card information extraction.
Use DateTime;
/**
* ID Number Processing class
* @author Weaksun
*/
Class Idcard {
Each year, the new first-year students need to report to a higher education department a spreadsheet containing the ID number, birth date and so on, in preparation for the establishment of a unified provincial electronic status files. Hundreds of freshmen, you have to enter hundreds of rows of corresponding data, this is not a cushy job. Is there any way to reduce the amount of input and improve efficiency?
The meaning of the number of digits in the ID card!
(1) The first 1 and 2 digits indicate the code of the province;
(2) The Code of the city where the user is located is represented by 3rd and 4 digits;
(3) 5th and 6 digits: the code of the Jinniu District and County;
(4) 7th ~ 14 digits indicate the year, month, and day of birth;
(5) 15th and 16 digits indicate the code of the local police station;
(6) 17t
This article mainly explains in Excel how to enter the ID card number question and the solution, hoped everybody can earnestly read, has learned the knowledge in the article.
Typing a very long number in Excel is a difficult task, although each cell can enter 255 characters, but that is to the letter, for the number,
.
Birth date calculation method.
The ID code first expands the birth year to 4 digits, simply by adding a 19 or 18, which includes all the people born in 1800-1999;
years after the birth of the affirmation is 18 without this trouble, as for 1800 years ago, then what should not have ID number this dongdong, ⊙﹏⊙ b khan ...
The following is a regular expr
Recent projects with the need to call the real-name authentication interface, real-name authentication interface price is not a few cents higher than the text message, so call the real-names authentication conditions to strictly check, so the use of JS to verify the real title and JS Authentication ID number.Go to the ChaseJS to verify the real name, is to use the Unicode character to match, and the Chinese name length is generally 2-4, so repeat the
When we use Excel to store customer information, it is often possible to enter a customer ID number in the form, but when we put a long string of numbers in, we find that the entire contents of the cell become a scientific counting method, how can I enter a valid ID number? Here I would like to share it for you.
Metho
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.