Difference between revisions of "User:Alleryn/Sandbox/MoonPhase"
From Project: Gorgon Wiki
< User:Alleryn | Sandbox
m (→Scratch) |
m (→3 day chart (proof of concept / testing)) |
||
Line 14: | Line 14: | ||
|- | |- | ||
|Today || {{#ifexpr: | |Today || {{#ifexpr: | ||
− | abs({{# | + | abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or |
− | abs({{# | + | abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon | |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 10}}<!--Date of Last Quarter Moon in GMT-->)<=24*60*60|Last Quarter| |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in GMT-->)<=24*60*60|First Quarter| |
− | {{#ifexpr: ({{# | + | {{#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: {{# | + | {{#ifexpr: {{#timel:xNU|today}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today}}-{{#timel:xNU|Oct 16}}<=24*60*60|New Moon| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today}}-{{#timel:xNU|Oct 16}}<29.53/4*24*60*60|Waxing Crescent|Waxing Gibbous |
}} | }} | ||
}} | }} | ||
Line 31: | Line 31: | ||
|- | |- | ||
|Tomorrow ||{{#ifexpr: | |Tomorrow ||{{#ifexpr: | ||
− | abs({{# | + | abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or |
− | abs({{# | + | abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon | |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 10}}<!--Date of Last Quarter Moon in GMT-->)<=24*60*60|Last Quarter| |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in GMT-->)<=24*60*60|First Quarter| |
− | {{#ifexpr: ({{# | + | {{#ifexpr: ({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}<=24*60*60|New Moon| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 16}}<29.53/4*24*60*60|Waxing Crescent|Waxing Gibbous |
}} | }} | ||
}} | }} | ||
Line 48: | Line 48: | ||
|- | |- | ||
|In 2 Days ||{{#ifexpr: | |In 2 Days ||{{#ifexpr: | ||
− | abs({{# | + | abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or |
− | abs({{# | + | abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon | |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 10}}<!--Date of Last Quarter Moon in GMT-->)<=24*60*60|Last Quarter| |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in GMT-->)<=24*60*60|First Quarter| |
− | {{#ifexpr: ({{# | + | {{#ifexpr: ({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}<=24*60*60|New Moon| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 16}}<29.53/4*24*60*60|Waxing Crescent|Waxing Gibbous |
}} | }} | ||
}} | }} | ||
Line 65: | Line 65: | ||
|- | |- | ||
|In 3 Days ||{{#ifexpr: | |In 3 Days ||{{#ifexpr: | ||
− | abs({{# | + | abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or |
− | abs({{# | + | abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon | |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 10}}<!--Date of Last Quarter Moon in GMT-->)<=24*60*60|Last Quarter| |
− | {{#ifexpr: abs({{# | + | {{#ifexpr: abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 23}}<!--Date of First Quarter Moon in GMT-->)<=24*60*60|First Quarter| |
− | {{#ifexpr: ({{# | + | {{#ifexpr: ({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}) < -29.53/4*24*60*60|Waning Gibbous| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}<-24*60*60|Waning Crescent| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}<=24*60*60|New Moon| |
− | {{#ifexpr: {{# | + | {{#ifexpr: {{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 16}}<29.53/4*24*60*60|Waxing Crescent|Waxing Gibbous |
}} | }} | ||
}} | }} |
Revision as of 05:35, 1 October 2020
Scratch
- 130967481
- in 2 days Mon, 25 Nov 2024 00:00:00 +0000
- today Sat, 23 Nov 2024 00:00:00 +0000
- now Sat, 23 Nov 2024 14:51:21 -0500
- oct 1 Tue, 01 Oct 2024 00:00:00 +0000
- 1727740800
3 day chart (proof of concept / testing)
Day | Moon phase |
---|---|
Today | Waxing Gibbous |
Tomorrow | Waxing Gibbous |
In 2 Days | Waxing Gibbous |
In 3 Days | Waxing Gibbous |
GMT
- Oct 1 - full
- Oct 10 - last q
- Oct 16 - new
- Oct 23 - first q
- Oct 31 - full