PHP cal_to_jd() 함수
예시
2007년 6월 20일(그레고리력)을 율리우스력으로 변환:
<?php
$d=cal_to_jd(CAL_GREGORIAN,6,20,2007);
echo $d;
?>
정의 및 사용
cal_to_jd() 함수는 지정된 달력의 날짜를 Julian Day Count로 변환합니다.
통사론
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 |
기술적 세부 사항
반환 값: | Julian Day 숫자를 반환합니다. |
---|---|
PHP 버전: | 4.1+ |
❮ PHP 캘린더 참조