DateTime::createFromFormat

(PHP 5 >= 5.3.0, PHP 7) Returns new DateTime object formatted according to the specified format public static DateTime DateTime::createFromFormat ( string $format, string $time [, DateTimeZone $timezone = date_default_timezone_get() ] ) Object oriented style Procedural style DateTime date_create_from_format ( string $format , string $time [, DateTimeZone $timezone = date_default_timezone_get() ] ) Returns new DateTime o

DateTime::__construct

(PHP 5 >= 5.2.0, PHP 7) Returns new DateTime object DateTime date_create ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] ) Object oriented style public DateTime::__construct ([ string $time = "now" [, DateTimeZone $timezone = NULL ]] ) Procedural style Returns new DateTime object. Parameters: time A date/time string. Valid formats are explained in Date an

DateTime::add

(PHP 5 >= 5.3.0, PHP 7) Adds an amount of days, months, years, hours, minutes and seconds to a DateTime object public DateTime DateTime::add ( DateInterval $interval ) Object oriented style Procedural style DateTime date_add ( DateTime $object , DateInterval $interval ) Adds the specified DateInterval object to the specified DateTime object. Parameters: object Proced

unixtojd

(PHP 4, PHP 5, PHP 7) Convert Unix timestamp to Julian Day int unixtojd ([ int $timestamp = time() ] ) Return the Julian Day for a Unix timestamp (seconds since 1.1.1970), or for the current day if no timestamp is given. Parameters: timestamp A unix timestamp to convert. Returns: A julian day number as integer.

juliantojd

(PHP 4, PHP 5, PHP 7) Converts a Julian Calendar date to Julian Day Count int juliantojd ( int $month, int $day, int $year ) Valid Range for Julian Calendar 4713 B.C. to 9999 A.D. Although this function can handle dates all the way back to 4713 B.C., such use may not be meaningful. The calendar was created in 46 B.C., but the details did not stabilize until at least 8 A.D., and perhaps as late at the 4th century. Also, the

jewishtojd

(PHP 4, PHP 5, PHP 7) Converts a date in the Jewish Calendar to Julian Day Count int jewishtojd ( int $month, int $day, int $year ) Although this function 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 to determine the start of a month. A new month was started when the new m

jdtounix

(PHP 4, PHP 5, PHP 7) Convert Julian Day to Unix timestamp 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 ). The time returned is localtime (and not GMT). Parameters: jday A julian day

jdtojulian

(PHP 4, PHP 5, PHP 7) Converts a Julian Day Count to a Julian Calendar Date string jdtojulian ( int $julianday ) Converts Julian Day Count to a string containing the Julian Calendar Date in the format of "month/day/year". Parameters: julianday A julian day number as integer Returns: The julian date as a string in the form "month/day/year"

jdtojewish

(PHP 4, PHP 5, PHP 7) Converts a Julian day count to a Jewish calendar date string jdtojewish ( int $juliandaycount [, bool $hebrew = false [, int $fl = 0 ]] ) Converts a Julian Day Count to the Jewish Calendar. Parameters: julianday A julian day number as integer hebrew If the hebrew parameter is set to TRUE, the fl parameter is used

jdtogregorian

(PHP 4, PHP 5, PHP 7) Converts Julian Day Count to Gregorian date string jdtogregorian ( int $julianday ) Converts Julian Day Count to a string containing the Gregorian date in the format of "month/day/year". Parameters: julianday A julian day number as integer Returns: The gregorian date as a string in the form "month/day/year"