This is a practical php date-time operation class, which includes the Gregorian-lunar conversion, converted to Chinese date format, the calculation of the lunar calendar days apart, the lunar calendar year to obtain the lunar calendar days, the
Php implements the conversion of the Gregorian calendar, and php implements the Gregorian calendar. Php implements the interactive method of the Gregorian calendar. php is more interested in the algorithm of the conversion from the Gregorian
PHP implementation of the Gregorian lunar calendar, the method of the implementation of the Gregorian lunar calendar
Recently to the Gregorian calendar to get the corresponding holiday algorithm this is more interested in this aspect, so on the
Calendars play a very important role in our lives, and work, school and date are all inseparable from calendars. Every year the new year begins, people have to change the calendar, you want to know how many days in the next year is how to be
This article mainly introduces how php achieves the conversion of the Gregorian calendar and the Chinese name of the calendar.
This article mainly introduces how php achieves the conversion of the Gregorian calendar and the Chinese name of the
This article mainly introduces the method of implementing the Gregorian lunar calendar in PHP, and also can obtain the Ganzhi, Zodiac, and the corresponding lunar calendar Chinese names, etc., interested in small partners can refer to. We hope to
PHP achieves mutual conversion between the Gregorian calendar date and the lunar calendar date.
PHP achieves mutual conversion between Gregorian and lunar dates
Preface:
Today, according to the customer's needs, the time was converted, that is, the
C # convert the winform Gregorian calendar date to the lunar calendar date,
Copy the code: Pass in the corresponding parameter to use:
////// Get the current server's Gregorian calendar time to the lunar calendar time ///// TianGan private static
Given the Gregorian date, the 12 constellations that are returned for that date are calculated.public static String getxingzuoname (int month, Int. day);Note: The parameter month and day are both Gregorian and Japanese.The name of the returned
Background
Recently achieved a project, need to convert the lunar calendar and the solar calendar, the Internet to find a lot of information, found a lot of is not allowed, but gave me the reference value
Algorithm
To borrow Baidu
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.