5,698
edits
Changes
m
→3 day chart (proof of concept / testing)
*{{#timel:xNZ}} local server offset from GMT in seconds
==3 day chart (proof of concept / testingtGMTing)==
{{Purge}} (This link will clear the page's cache, which may be necessary to fetch the current day correctly.)
{|
|-
|Today || {{#ifexpr:
abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in ESTGMT--> ) <= 24*60*60 or abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in ESTGMT--> ) <= 24*60*60 | Full Moon |{{#ifexpr: abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 910}}<!--Date of Last Quarter Moon in ESTGMT-->)<=24*60*60|Last Quarter|{{#ifexpr: abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in ESTGMT-->)<=24*60*60|First Quarter|
{{#ifexpr: ({{#timel:xNU|today}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous| <!-- 29.53/4 is a quarter of the average synodic month, but we could use something less precise, we have a lot of leeway-->
{{#ifexpr: {{#timel:xNU|today}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent|
|-
|Tomorrow ||{{#ifexpr:
abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in ESTGMT--> ) <= 24*60*60 or abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in ESTGMT--> ) <= 24*60*60 | Full Moon |{{#ifexpr: abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 910}}<!--Date of Last Quarter Moon in ESTGMT-->)<=24*60*60|Last Quarter|{{#ifexpr: abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in ESTGMT-->)<=24*60*60|First Quarter|
{{#ifexpr: ({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous|
{{#ifexpr: {{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent|
|-
|In 2 Days ||{{#ifexpr:
abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in ESTGMT--> ) <= 24*60*60 or abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in ESTGMT--> ) <= 24*60*60 | Full Moon |{{#ifexpr: abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 910}}<!--Date of Last Quarter Moon in ESTGMT-->)<=24*60*60|Last Quarter|{{#ifexpr: abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in ESTGMT-->)<=24*60*60|First Quarter|
{{#ifexpr: ({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous|
{{#ifexpr: {{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent|
|-
|In 3 Days ||{{#ifexpr:
abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in ESTGMT--> ) <= 24*60*60 or abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in ESTGMT--> ) <= 24*60*60 | Full Moon |{{#ifexpr: abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 910}}<!--Date of Last Quarter Moon in ESTGMT-->)<=24*60*60|Last Quarter|{{#ifexpr: abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in ESTGMT-->)<=24*60*60|First Quarter|
{{#ifexpr: ({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous|
{{#ifexpr: {{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent|