دالة PHP cal_to_jd ()
مثال
تحويل يوم 20 يونيو 2007 (التقويم الغريغوري) إلى عدد أيام جوليان:
<?php
$d=cal_to_jd(CAL_GREGORIAN,6,20,2007);
echo $d;
?>
التعريف والاستخدام
تقوم وظيفة cal_to_jd () بتحويل تاريخ في تقويم محدد إلى عدد أيام جوليان.
بناء الجملة
cal_to_jd(calendar,month,day,year);
قيمه المعامل
Parameter | Description |
---|---|
calendar | Required. Specifies the calendar to convert from. Must be one of the following values:
|
month | Required. Specifies the month as a number |
day | Required. Specifies the day as a number |
year | Required. Specifies the year as a number |
تفاصيل تقنية
قيمة الإرجاع: | إرجاع رقم جوليان داي |
---|---|
إصدار PHP: | 4.1+ |
❮ مرجع تقويم PHP