5,838
edits
Line 2,328: | Line 2,328: | ||
|Returns 1 if the sun is shining, otherwise 0 (Solar sensor needed) | |Returns 1 if the sun is shining, otherwise 0 (Solar sensor needed) | ||
|} | |} | ||
* Footnote: PHP code extract | <code> | ||
* Footnote: PHP code extract: | |||
$MoonAgeDays = <#MoonAge dp=0> +0; | |||
$moonDecimalPart = <#MoonAge dp=4> - $MoonAgeDays; | $moonDecimalPart = <#MoonAge dp=4> - $MoonAgeDays; | ||
$MoonAgeHours = round($moonDecimalPart * 24, 0); | $MoonAgeHours = round($moonDecimalPart * 24, 0); |
edits