What is Calendar in PHP

In this article I am going to explain about PHP calendar functions.
  • 2423

PHP Calendar Functions

The calendar functions is used , when we are working with different calendar formats. The calendar standard is based on in Julian day count. The calendar component written in PHP script and it have two modes:

  • Normal display calendar
     
  • Data picker

There are different type of functions in PHP calendar:

Function Description
cal_days_in_month It returns the number of days in a month for a specified year and calendar.
cal_from_jd It converts a Julian day count into a date to a supported calendar.
cal_info It returns information about a specified calendar.
cal_to_jd It converts a date to Julian day count.
easter_date It returns the Unix timestamp for midnight on Easter of a given year.
easter_days It returns the number of days after March 21, on which Easter falls for a given year.
frenchtojd It converts a date from the French Republican calendar to a Julian Day Count.
gregoriantojd It converts a Gregorian date to a Julian day count.
jddayofweek It returns the day of the week.
jdmonthname It returns a month name.
jdtofrench It converts a Julian day count to the French Republican Calendar.
jdtogregorian it converts a Julian day count to a Gregorian date.
jdtojewish It converts a Julian day count to a Jewish date.
jdtojulian It converts a Julian day count to Julian calendar date.
jdtounix It converts a Julian day count to a Unix timestamp.
jewishtojd It converts a date in the Jewish calendar day count.
juliantojd It converts a Julian date to a Julian date count.
unixtojd It converts a Unix timestamp to a Julian day count.


You may also want to read these related articles :
here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.