The calendar functions focus on converting dates between calendar systems and getting information about dates.
The calendar functions focus on converting dates between calendar systems and getting information about dates. The conversion functions either convert a date from a specific calendar system to a Julian day count or convert a Julian day count to a date for a specific calendar system. Julian day counts are a calendar system first introduced in the 16th century for use in astronomical calculations. A Julian day count is the number of days that have passed since noon on January 1, 4713 B.C. (according to the Julian calendar). The sequential, non-repeating nature of Julian days makes them ideal for calculating intervals between events and for acting as a kind of lingua franca for converting between calendar systems. One thing to keep in mind when using Julian day counts is that the Julian day starts at noon, while the civil day in the Julian and Gregorian calendars starts at midnight. For more information on the other calendar systems that are handled by these functions, see the entries in this chapter.
The calendar functions complement the date and time functions very well. See the "Date and Time Functions" module for more information.
PHP needs to be built with --enable-calendar for these functions to be available.
PHP Functions Essential Reference. Copyright © 2002 by New Riders Publishing (Authors: Zak Greant, Graeme Merrall, Torben Wilson, Brett Michlitsch). This material may be distributed only subject to the terms and conditions set forth in the Open Publication License, v1.0 or later (the latest version is presently available at http://www.opencontent.org/openpub/). The authors of this book have elected not to choose any options under the OPL. This online book was obtained from http://www.fooassociates.com/phpfer/ and is designed to provide information about the PHP programming language, focusing on PHP version 4.0.4 for the most part. The information is provided on an as-is basis, and no warranty or fitness is implied. All persons and entities shall have neither liability nor responsibility to any person or entity with respect to any loss or damage arising from the information contained in this book.