Sequence and algorithm of 12 zodiac signs in perpetual calendar Program

Source: Internet
Author: User
Tags comparison table

Sometimes the calendar program involves the sequence of 12 Chinese zodiac signs and Related algorithms. Here we will summarize:

Algorithm:
The year minus 3 divided by 12, and the remainder is the serial number of the corresponding 12 zodiac signs. If the remainder is 0, the serial number is 12. Then, follow the instructions below to get the Chinese zodiac:

One mouse, two cows, three tigers, four rabbits,
Wu Long, six snakes, seven horses and eight sheep heads.
Nine monkeys, ten chickens, and dogs.
The twelve golden PIOs are arranged at the end.

By region and Zodiac tips:
The mouse, the ugly cow, the tiger, and the rabbit go,
Chen long Yi snake Wu ma Not goat's head.
The monkey and the dog,
The golden pig of Hai is arranged at the end.

Note

There is also an easy question about the Zodiac
(It looks like a children's song. It can be taught to children. Hey hey !) :

Mouse, head up, And the ox raises his hoof.
When the tiger turned back, the rabbit ran fast.
Long and snake, tail throw, horse and goat stride.
The monkey is clever and jumps, and the rooster sings white.
The dog jumps and the pig is called. The mouse then comes up.
Twelve Animals were circled and arranged in order in 1234.

Appendix: Comparison Table of the Year of the Zodiac(January)
Rat 1900 ox 1901 tiger 1902 rabbit 1903 dragon 1904 snake 1905 horse 1906 goat 1907 monkey 1908 chicken 1909 dog 1910 pig 1911
Rat 1912 ox 1913 tiger 1914 rabbit 1915 dragon 1916 snake 1917 horse 1918 goat 1919 monkey 1920 chicken 1921 dog 1922 pig 1923
Rat 1924 ox 1925 tiger 1926 rabbit 1927 dragon 1928 snake 1929 horse 1930 goat 1931 monkey 1932 chicken 1933 dog 1934 pig 1935
Rat 1936 ox 1937 tiger 1938 rabbit 1939 dragon 1940 snake 1941 horse 1942 goat 1943 monkey 1944 chicken 1945 dog 1946 pig 1947
Rat 1948 ox 1949 tiger 1950 rabbit 1951 dragon 1952 snake 1953 horse 1954 goat 1955 monkey 1956 chicken 1957 dog 1958 pig 1959
Rat 1960 ox 1961 tiger 1962 rabbit 1963 dragon 1964 snake 1965 horse 1966 goat 1967 monkey 1968 chicken 1969 dog 1970 pig 1971
Rat 1972 ox 1973 tiger 1974 rabbit 1975 dragon 1976 snake 1977 horse 1978 goat 1979 monkey 1980 chicken 1981 dog 1982 pig 1983
Rat 1984 ox 1985 tiger 1986 rabbit 1987 dragon 1988 snake 1989 horse 1990 goat 1991 monkey 1992 chicken 1993 dog 1994 pig 1995
Rat 1996 ox 1997 tiger 1998 rabbit 1999 dragon 2000 snake 2001 horse 2002 goat 2003 monkey 2004 chicken 2005 dog 2006 pig 2007
Rat 2008 ox 2009 tiger 2010 rabbit 2011 dragon 2012 snake 2013 horse 2014 goat 2015 monkey 2016 chicken 2017 dog 2018 pig 2019
Rat 2020 ox 2021 tiger 2022 rabbit 2023 dragon 2024 snake 2025 horse 2026 goat 2027 monkey 2028 chicken 2029 dog 2030 pig 2031
Rat 2032 ox 2033 tiger 2034 rabbit 2035 dragon 2036 snake 2037 horse 2038 goat 2039 monkey 2040 chicken 2041 dog 2042 pig 2043
Rat 2044 ox 2045 tiger 2046 rabbit 2047 dragon 2048 snake 2049 horse 2050 goat 2051 monkey 2052 chicken 2053 dog 2054 pig 2055
Rat 2056 ox 2057 tiger 2058 rabbit 2059 dragon 2060 snake 2061 horse 2062 goat 2063 monkey 2064 chicken 2065 dog 2066 pig 2067
Rat 2068 ox 2069 tiger 2070 rabbit 2071 dragon 2072 snake 2073 horse 2074 goat 2075 monkey 2076 chicken 2077 dog 2078 pig 2079
Rat 2080 ox 2081 tiger 2082 rabbit 2083 dragon 2084 snake 2085 horse 2086 goat 2087 monkey 2088 chicken 2089 dog 2090 pig 2091
Rat 2092 ox 2093 tiger 2094 rabbit 2095 dragon 2096 snake 2097 horse 2098 goat 2099 monkey 2100 chicken 2101 dog 2102 pig 2103

If you are interested in this aspect of poetry, you may wish to take a look at this article:
[Figure] Chinese zodiac PoetryHttp://21cn.aqioo.com/article/13843,view.html

12 Chinese zodiac and 12 hours:
According to the time when the sun rose, the ancients divided the day and night into twelve hours, and used the 12th branch as the code for easy memorization. China uses the ground support timing method, which is called the twelve hour ("big"), that is, the twenty-four "hours" we now call ".
The Chinese zodiac is composed of eleven animals from nature: rats, cows, tigers, rabbits, snakes, horses, sheep, monkeys, chickens, dogs, and pigs, there is also a legend of the dragon. The ancients used the habits of these twelve animals to allocate different branches. For example, a mouse is an animal that is active at night. Therefore, the mouse is used with time (from midnight to midnight, they were closely related to daily life and daily life in the agricultural society at that time.

How does the Zodiac match the hour? The following is for reference only:
Midnight: The last time of a day is the beginning of a new day.
Ugly (OX) Am to AM: ugly refers to the dark stage before dawn. It is said that it was the time when the cattle started farming.
Yin (TIGER): From AM to AM: on the first day of the day, the time when the tiger started its activities.
Mao (rabbit) from AM to AM: when the sun has soared and began to shine.
Chen (Dragon) Am to AM: the time when the sun heat increases, is said to be the time when the Dragon Group traveled to the west.
When it was between nine o'clock A.M. and 11, Sun was getting hotter.
From eleven o'clock A.M. to thirteen o'clock P.M. pm, the sun was the most intense on the first day.
No (Goat) Thirteen o'clock P.M. to 15: On the first day, the summer heat will disappear.
Shen (monkey) Fifteen o'clock P.M. to: On the first day, Shen Shi's summer heat is almost over.
You (chicken) Seventeen o'clock P.M. to 19: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00: 00.
PM-PM: on the first day of the year, the dark night spreads and the light begins to shine.
Hai (pig): from PM to midnight: on the first day of the week, it will be done on the first day.

Two stories:
(1) Why are there any mice and no cats?
Do you know what you belong? Why are there any mice and no cats? Here is a story. A long time ago, one day, people said, "We want to choose twelve animals as Chinese zodiac animals. One year is an animal ." How many animals are there in the world? How can this problem be selected? In this case, set a day for the animals to register, and select the first twelve animals as the Zodiac. Cats and mice are neighbors and good friends. They all want to sign up. The cat said, "We have to get up early, but I love sleep. What should we do ?" The mouse said, "Don't worry, don't worry. Even though you slept in your sleep, I woke up and called you. Let's go together ." The cat was very happy and said, "You are my good friend. Thank you ." On the morning of registration, the mouse woke up early, but he forgot about his good friend and cat. I registered myself. As a result, the mouse was selected. What about cats? It was too late to get up because of sleep. When it arrived, twelve animals were selected. When the cat was not selected, it was angry with the mouse. The strange mouse did not call it. Since then, when the cat saw the mouse, it was about to eat it, and the mouse had to desperately escape. This is still the case till now.
(2) how to place a mouse in the first place?
The sequence of Chinese zodiac signs is: Rat, ox, Tiger, Rabbit, dragon, Snake, horse, goat, monkey, chicken, dog, and pig. How can we place a mouse in the first place? There is also a story here. On the day of registration, the mouse got up very early and the Ox got up very early. They met on the road. The ox's head is big, and the mouse's foot is big. The mouse's foot is also small, and the mouse just keeps up with the ox. The mouse thought: the road is far away, and I can't run fast. What should I do? When his mind moved, he came up with an idea and said to the ox, "I want to sing a song to you, Brother Niu ." The cow said, "Well, you can sing it. Why don't you sing it ?" The mouse said, "I'm singing. Why didn't you hear it? Oh, my friends are too detailed. You didn't hear it. Let me ride on your neck and sing a song, and you will hear it ." Niu said: "OK, OK !" The mouse climbed up the neck of the ox along its leg and let the Ox walk with it. It shake your head and sing a song: Brother Niu, Brother Niu, crossing the river, mountain hill, drive, drive, hurry up! Once the ox heard it, he was happy. He ran away with four legs and ran to the registration place to check that no one had come. He was so happy that he shouted, "I'm the first, and I'm the first!" The ox hasn't finished talking yet. The mouse jumps from the neck of the ox to the ground, and then it goes to the front of the ox. As a result, the mouse won the first place and the ox won the second place. Therefore, in the zodiac, the mouse ranked first.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.