php Web Development logo

 

 

 

The Importance of PHP Calendar functions in PHP Development

June 26th, 2010

PHP Calendar Introduction

The calendar functions are helpful when working with different calendar formats. It is based on the standard is the Julian day count (Julian day count is a count of days starting from January 1, 4713 B.C.). In order to convert between calendar formats, one must at first convert to Julian day count, then to the calendar format.

Installation

The windows version of PHP consists of built-in support for the calendar extension. So, the calendar functions will be able to work automatically.

However, in case you are running the Linux version of PHP, you will require compiling PHP with --enable-calendar to get the calendar functions to work.

PHP Calendar Functions

  • PHP: Points to the earliest version of PHP that supports the function.
  • Cal Days in Month: This key has an unique function. It can return the number of days of a month for a specified year and calendar. This is applicable for PHP 4.
  • Cal from ID: This key also has a unique and specified function. It can convert the Julian Day count into a date of a specified calendar.
  • Cal Info: This key has the function of returning the information about a given calendar.
  • Cal to ID: This is just the opposite in function to the Cal from ID. It can convert t a date into a Julian Day count.
  • Easter Date: It can return the Unix timestamp for midnight on Easter of a specified year.
  • Easter Days: Returns the number of days after March 21, on which Easter falls for a specified year
  • French Tol: It can convert a French Republican date to a Julian day count
  • Gregorian to JD: It can convert a Gregorian date to a Julian day count.
  • JD Days of the Week: It can return the days of the week at a fast pace.
  • JD Month Name: It can display the month name as and when required.
  • JD to French: It can convert a Julian Day count into a French Republican date.
  • JD to Jewish: This is another vital feature of the PHP Calendar. It can convert the Julian Day into a Jewish Date.

Apart from these facts, there are a number of PHP Calendar constants. They are part and parcel of PHP functionalities. The calendar contents include those constants from the Julian Day Calendar, Gregorian calendar and Jewish calendar. There are also some constants from the French Calendar as well.

The above article shows the importance of calendar functions in

Rate this Article: 0 / 5 stars - 0 vote(s)
Print Email Re-Publish

About the Author:

Tyler Moon is an expert in article writing and internet marketing. She regularly contributes articles on various topics like security services, birth announcements etc.

Author: Tyler Moon

 

php Web Development logo

Report a Bad Post

 

 

 

Related Webmaster Information & Resource Sites:
Domain Buffs     Design: CSS Websites     foo site: Website Coding     Target: Page 1 Search Result Rankings     PPC Ad Income: Website Monetization