PHP cal_from_jd()ฟังก์ชัน
ตัวอย่าง
แปลงการนับวันจูเลียนเป็นวันที่ในปฏิทินเกรกอเรียน:
<?php
$d=unixtojd(mktime(0,0,0,6,20,2007));
print_r(cal_from_jd($d,CAL_GREGORIAN));
?>
ความหมายและการใช้งาน
ฟังก์ชัน cal_from_jd() แปลง Julian Day Count เป็นวันที่ในปฏิทินที่ระบุ
ไวยากรณ์
cal_from_jd(jd,calendar);
ค่าพารามิเตอร์
Parameter | Description |
---|---|
jd | Required. Specifies a Julian Day as an integer |
calendar | Required. Specifies the calendar to convert to. Must be one of the following values:
|
รายละเอียดทางเทคนิค
คืนมูลค่า: | ส่งกลับอาร์เรย์ที่มีข้อมูลปฏิทินเช่น:
|
---|---|
รุ่น PHP: | 4.1+ |
❮ การอ้างอิงปฏิทิน PHP