<HTML ><HEAD ><TITLE >Calendar functions</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK REL="HOME" TITLE="PHP Manual" HREF="manual.html"><LINK REL="UP" TITLE="Function Reference" HREF="funcref.html"><LINK REL="PREVIOUS" TITLE="aspell_suggest" HREF="function.aspell-suggest.html"><LINK REL="NEXT" TITLE="JDToGregorian" HREF="function.jdtogregorian.html"></HEAD ><BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP Manual</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.aspell-suggest.html" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.jdtogregorian.html" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="reference" ><A NAME="ref.calendar" ></A ><DIV CLASS="TITLEPAGE" ><H1 CLASS="title" >V. Calendar functions</H1 ><DIV CLASS="PARTINTRO" ><A NAME="AEN4604" ></A ><P > The calendar functions are only available if you have compiled the calendar extension in dl/calendar. Read dl/README for instructions on using it. </P ><P > The calendar extension presents a series of functions to simplify converting between different calendar formats. The intermediary or standard it is based on is the Julian Day Count. The Julian Day Count is a count of days starting way earlier than any date most people would need to track (somewhere around 4000bc). To convert between calendar systems, you must first convert to Julian Day Count, then to the calendar system of your choice. Julian Day Count is very different from the Julian Calendar! For more information on calendar systems visit <A HREF="http://genealogy.org/~scottlee/cal-overview.html" TARGET="_top" >http://genealogy.org/~scottlee/cal-overview.html</A >. Excerpts from this page are included in these instructions, and are in quotes.</P ></DIV ><DIV CLASS="TOC" ><DL ><DT ><B >Table of Contents</B ></DT ><DT ><A HREF="function.jdtogregorian.html" >JDToGregorian</A > — Converts Julian Day Count to Gregorian date</DT ><DT ><A HREF="function.gregoriantojd.html" >GregorianToJD</A > — Converts a Gregorian date to Julian Day Count</DT ><DT ><A HREF="function.jdtojulian.html" >JDToJulian</A > — Converts a Julian Calendar date to Julian Day Count</DT ><DT ><A HREF="function.juliantojd.html" >JulianToJD</A > — Converts a Julian Calendar date to Julian Day Count</DT ><DT ><A HREF="function.jdtojewish.html" >JDToJewish</A > — Converts a Julian Day Count to the Jewish Calendar</DT ><DT ><A HREF="function.jewishtojd.html" >JewishToJD</A > — Converts a date in the Jewish Calendar to Julian Day Count</DT ><DT ><A HREF="function.jdtofrench.html" >JDToFrench</A > — Converts a Julian Day Count to the French Republican Calendar</DT ><DT ><A HREF="function.frenchtojd.html" >FrenchToJD</A > — Converts a date from the French Republican Calendar to a Julian Day Count</DT ><DT ><A HREF="function.jdmonthname.html" >JDMonthName</A > — Returns a month name</DT ><DT ><A HREF="function.jddayofweek.html" >JDDayOfWeek</A > — Returns the day of the week</DT ><DT ><A HREF="function.easter-date.html" >easter_date</A > — get UNIX timestamp for midnight on Easter of a given year</DT ><DT ><A HREF="function.easter-days.html" >easter_days</A > — get number of days after March 21 on which Easter falls for a given year</DT ></DL ></DIV ></DIV ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.aspell-suggest.html" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="manual.html" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.jdtogregorian.html" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >aspell_suggest</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="funcref.html" >Up</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >JDToGregorian</TD ></TR ></TABLE ></DIV ></BODY ></HTML >