← All docs
date_sunset()
Rewritten by the name resolver into a constructor or method call on the corresponding builtin class before type checking.
date_sunset()
function date_sunset(int $timestamp, int $returnFormat = SUNFUNCS_RET_STRING, ?float $latitude = null, ?float $longitude = null, ?float $zenith = null, ?float $utcOffset = null): mixed
Rewritten by the name resolver into a constructor or method call on the corresponding builtin class before type checking.
Parameters:
$timestamp(int)$returnFormat(int), defaultSUNFUNCS_RET_STRING, optional$latitude(?float), defaultnull, optional$longitude(?float), defaultnull, optional$zenith(?float), defaultnull, optional$utcOffset(?float), defaultnull, optional
Returns: mixed
Availability
- Compiled (AOT): supported through the Elephc compiler.
eval()(magician interpreter): supported through the procedural date/time alias dispatcher.
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how date_sunset is implemented in the compiler, see the internals page.