Home > Article > Backend Development > What is the usage of php calendar
php The calendar extension set includes a series of functions for converting between different calendars. The methods of use are as follows: 1. Convert the calendar to Julian Day counts; 2. Then convert to what you need calendar format.
The operating environment of this article: windows7 system, PHP5 version, DELL G3 computer
What is the usage of php calendar?
PHP Calendar Functions
PHP Calendar Introduction
The calendar extension contains functions that simplify conversion between different calendar formats.
It is based on the Julian Day Count, which began on January 1, 4713 BC.
Note: To convert between calendar formats, you must first convert to Julian Day Count and then to the calendar format of your choice.
Note: Julian Day Count and Julian Calendar are not the same thing!
Installation
In order for these functions to work, you must compile PHP with --enable-calendar.
The Windows version of PHP has built-in support for calendar extensions. Therefore, the Calendar function works automatically.
Recommended learning: "PHP Video Tutorial"
The above is the detailed content of What is the usage of php calendar. For more information, please follow other related articles on the PHP Chinese website!