PHP cal_to_jd() Fungsi
Contoh
Konversi 20 Juni 2007 (kalender Gregorian) ke Hitungan Hari Julian:
<?php
$d=cal_to_jd(CAL_GREGORIAN,6,20,2007);
echo $d;
?>
Definisi dan Penggunaan
Fungsi cal_to_jd() mengonversi tanggal dalam kalender tertentu ke Hitungan Hari Julian.
Sintaksis
cal_to_jd(calendar,month,day,year);
Nilai Parameter
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 |
Detail Teknis
Nilai Kembali: | Mengembalikan nomor Hari Julian |
---|---|
Versi PHP: | 4.1+ |
Referensi Kalender PHP