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 |
टेक्निकल डिटेल
प्रतिलाभ की मात्रा: | जूलियन डे नंबर लौटाता है |
---|---|
पीएचपी संस्करण: | 4.1+ |
❮ पीएचपी कैलेंडर संदर्भ