autofocus
11-24-2009, 03:33 AM
Hi
i came across this code in an application
$jd = cal_to_jd(CAL_GREGORIAN, $thismonth, date(1), $thisyear);
what is the purpose of date(1) ? i checked php manual but could not find why there is an integer. most of the time i have used date('Y') or date('m') or other similar usages where i always passed some kind of format as string.
thanks
i came across this code in an application
$jd = cal_to_jd(CAL_GREGORIAN, $thismonth, date(1), $thisyear);
what is the purpose of date(1) ? i checked php manual but could not find why there is an integer. most of the time i have used date('Y') or date('m') or other similar usages where i always passed some kind of format as string.
thanks