You are here: Home // Calendar functions

jdtounix

(PHP4 >= 4.0RC2) jdtounix – Convert Julian Day to UNIX timestamp Description int jdtounix (int jday) This function will return a UNIX timestamp corresponding to the Julian Day given in jday or false if jday is not inside the UNIX epoch (Gregorian years between 1970 and 2037 or 2440588 <= jday <= 2465342 ) See also jdtounix(). Note: This function

unixtojd

(PHP4 >= 4.0RC2) unixtojd – Convert UNIX timestamp to Julian Day Description int unixtojd ([int timestamp]) Return the Julian Day for a UNIX timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given. See also jdtounix(). Note: This function is only available in PHP versions after PHP4RC1.

easter_days

(PHP3 >= 3.0.9, PHP4 >= 4.0RC2) easter_days –  Get number of days after March 21 on which Easter falls for a given year Description int easter_days (int year) Returns the number of days after March 21 on which Easter falls for a given year. If no year is specified, the current year is assumed. This function can be used instead of easter_date() to calculate

easter_date

(PHP3 >= 3.0.9, PHP4 >= 4.0RC2) easter_date –  Get UNIX timestamp for midnight on Easter of a given year Description int easter_date (int year) Returns the UNIX timestamp corresponding to midnight on Easter of the given year. If no year is specified, the current year is assumed. Warning: This function will generate a warning if the year is outside of the range

JDDayOfWeek

(PHP3 , PHP4 ) JDDayOfWeek – Returns the day of the week Description mixed jddayofweek (int julianday, int mode) Returns the day of the week. Can return a string or an int depending on the mode. Table 1. Calendar week modes Mode Meaning 0 Returns the day number as an int (0=sunday, 1=monday, etc) 1 Returns string containing the day of week (english-gregorian) 2 Returns

JDMonthName

(PHP3 , PHP4 ) JDMonthName – Returns a month name Description string jdmonthname (int julianday, int mode) Returns a string containing a month name. mode tells this function which calendar to convert the Julian Day Count to, and what type of month names are to be returned. Table 1. Calendar modes Mode Meaning 0 Gregorian – abbreviated 1 Gregorian 2 Julian –

FrenchToJD

(PHP3 , PHP4 ) FrenchToJD –  Converts a date from the French Republican Calendar to a Julian Day Count Description int frenchtojd (int month, int day, int year) Converts a date from the French Republican Calendar to a Julian Day Count. These routines only convert dates in years 1 through 14 (Gregorian dates 22 September 1792 through 22 September 1806). This more

JDToFrench

(PHP3 , PHP4 ) JDToFrench –  Converts a Julian Day Count to the French Republican Calendar Description string jdtofrench (int month, int day, int year) Converts a Julian Day Count to the French Republican Calendar.

JewishToJD

(PHP3 , PHP4 ) JewishToJD –  Converts a date in the Jewish Calendar to Julian Day Count Description int jewishtojd (int month, int day, int year) Valid Range Although this software can handle dates all the way back to the year 1 (3761 B.C.), such use may not be meaningful. The Jewish calendar has been in use for several thousand years, but in the early days there was no formula

JDToJewish

(PHP3 , PHP4 ) JDToJewish –  Converts a Julian Day Count to the Jewish Calendar Description string jdtojewish (int julianday) Converts a Julian Day Count the the Jewish Calendar.
Copyright © 2010 PHP Manual. SiteMap.
Designed by Web Design SiteConstruct. Powered by WordPress.