源代码:
Lisbon, Portugal"); echo("Date: " . date("D M d Y")); echo(" Sunrise time: "); echo(date_sunrise(time(),SUNFUNCS_RET_STRING,38.4,-9,90,1)); echo(" Sunset time: "); echo(date_sunset(time(),SUNFUNCS_RET_STRING,38.4,-9,90,1)); ?>
运行结果:
Lisbon, Portugal
Date: Mon Dec 23 2024 Sunrise time: 08:54 Sunset time: 18:16