Webtags (preserving history): Difference between revisions

m
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)
|}
|}
*<code>
* Footnote: PHP code extract<code> $MoonAgeDays = <#MoonAge dp=0> +0;
$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);
5,838

edits