Home > Backend Development > PHP Problem > What is the usage of php calendar

What is the usage of php calendar

藏色散人
Release: 2023-03-14 19:50:01
Original
1490 people have browsed it

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.

What is the usage of php calendar

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.

What is the usage of php calendar

What is the usage of php calendar

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template