Sms dating Greve Singles bramsche

durch  |  26-Aug-2015 19:04

The gregoriantojd function takes the month, day and year (in that order) of the Gregorian date and returns the corresponding Julian day number.Then you can pass the returned Julian day number to the jdtojewish function which returns a string of the form MM/DD/YYYY containing the Jewish month, day and year of the passed Julian day number.As the parameters, it takes the type of calendar (CAL_GREGORIAN or CAL_JEWISH), the month and the year.

function is Jewish Leap Year($year) { if ($year % 19 == 0 || $year % 19 == 3 || $year % 19 == 6 || $year % 19 == 8 || $year % 19 == 11 || $year % 19 == 14 || $year % 19 == 17) return true; else return false; } $result = is Jewish Leap Year(5765); echo " When displaying a month name string, you should distinguish between leap years and non-leap years in order to correctly display the month name of Adar.

The following function get Jewish Month Name helps: Code for PHP 5.5: function is Jewish Leap Year($year) { if ($year % 19 == 0 || $year % 19 == 3 || $year % 19 == 6 || $year % 19 == 8 || $year % 19 == 11 || $year % 19 == 14 || $year % 19 == 17) return true; else return false; } function get Jewish Month Name($jewish Month, $jewish Year) { $jewish Month Names Leap = array("Tishri", "Heshvan", "Kislev", "Tevet", "Shevat", "Adar I", "Adar II", "Nisan", "Iyar", "Sivan", "Tammuz", "Av", "Elul"); $jewish Month Names Non Leap = array("Tishri", "Heshvan", "Kislev", "Tevet", "Shevat", "", "Adar", "Nisan", "Iyar", "Sivan", "Tammuz", "Av", "Elul"); if (is Jewish Leap Year($jewish Year)) return $jewish Month Names Leap[$jewish Month-1]; else return $jewish Month Names Non Leap[$jewish Month-1]; } $month Str = get Jewish Month Name(6, 5765); echo " function is Jewish Leap Year($year) { if ($year % 19 == 0 || $year % 19 == 3 || $year % 19 == 6 || $year % 19 == 8 || $year % 19 == 11 || $year % 19 == 14 || $year % 19 == 17) return true; else return false; } function get Jewish Month Name($jewish Month, $jewish Year) { $jewish Month Names Leap = array("Tishri", "Heshvan", "Kislev", "Tevet", "Shevat", "Adar I", "Adar II", "Nisan", "Iyar", "Sivan", "Tammuz", "Av", "Elul"); $jewish Month Names Non Leap = array("Tishri", "Heshvan", "Kislev", "Tevet", "Shevat", "Adar", "", "Nisan", "Iyar", "Sivan", "Tammuz", "Av", "Elul"); if (is Jewish Leap Year($jewish Year)) return $jewish Month Names Leap[$jewish Month-1]; else return $jewish Month Names Non Leap[$jewish Month-1]; } $month Str = get Jewish Month Name(6, 5765); echo " In order to convert a Gregorian date to a Jewish date, use the gregoriantojd function to convert the Gregorian date into a Julian day number and the jdtojewish function to convert the Julian day number to a Jewish date.

longitude specifies a longitude in the East when being positive and in the West when being negative. With the value zenith, you can specify whether sunrise/sunset with or without degrees below horizon is calculated.

Example: $jd Number = jewishtojd(2, 13, 5765); $gregorian Date = jdtogregorian($jd Number); list($gregorian Month, $gregorian Day, $gregorian Year) = explode('/', $gregorian Date); $gregorian Month Names = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); $gregorian Month Name = $gregorian Month Names[$gregorian Month-1]; echo " Given a Julian day number, the weekday of a date can be easily determined by the jddayofweek function which takes the Julian day number and a mode, which determines how to return the weekday (as a number or as a string), as arguments.

In this example, mode 0 is used so that 0 is returned for Sunday, 1 is returned for Monday, and so on: $jd Number = gregoriantojd(5, 21, 1993); $weekday No = jddayofweek($jd Number, 0); $weekday Names = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"); $weekday Name = $weekday Names[$weekday No]; echo " The function cal_days_in_month returns the days in a specified month which occurs in the specified year.

Forum-Mitarbeiter anzeigen