The Date, Time and Calendar funcitons are a very valuable group of integrated functions in PHP programming. These functions allow user to get the date and time from the server where your PHP scripts are running. These functions can be used to format the date and time in many different ways. The list below shows some of the significant characteristics of date, time and calendar functions.

Important to know about date, time and calendar functions in PHP:

  • The date and time information is internally stored.
  • The range of time is from about 292 billion years in the past to the same in the future.
  • The calendar extension presents a series of functions to simplify converting between different calendar formats.
  • The standard is based on is the Julian Day Count.
  • The Julian Day Count is a count of days starting from January 1st, 4713 B.C.
  • To convert between calendar systems, first conversion to Julian Day Count should be made, then to the calendar system of user’s choice.

 

›› go to examples ››