Difference between revisions of "User:Alleryn/Sandbox/MoonPhase"

From Project: Gorgon Wiki
Jump to: navigation, search
(3 day chart (proof of concept / tGMTing))
Line 15: Line 15:
 
!Moon phase
 
!Moon phase
 
|-
 
|-
|Today GMT(({{#time:D, Y-M j|today}}) || {{#ifexpr:
+
|Today GMT ({{#time:D, Y-M j|today}}) || {{#ifexpr:
 
abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
 
abs({{#timel:xNU|today}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
Line 32: Line 32:
 
}}
 
}}
 
|-
 
|-
|Tomorrow(({{#time:D|today +1 days}}) ||{{#ifexpr:
+
|Tomorrow ({{#time:D|today +1 days}}) ||{{#ifexpr:
 
abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
 
abs({{#timel:xNU|today + 1 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
Line 49: Line 49:
 
}}
 
}}
 
|-
 
|-
|In 2 Days(({{#time:D|today +2 days}}) ||{{#ifexpr:
+
|In 2 Days ({{#time:D|today +2 days}}) ||{{#ifexpr:
 
abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
 
abs({{#timel:xNU|today + 2 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
Line 66: Line 66:
 
}}
 
}}
 
|-
 
|-
|In 3 Days(({{#time:D|today +3 days}}) ||{{#ifexpr:
+
|In 3 Days ({{#time:D|today +3 days}}) ||{{#ifexpr:
 
abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 1}} <!--Date of Last Full Moon in GMT--> ) <= 24*60*60 or  
 
abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |
 
abs({{#timel:xNU|today + 3 days}}-{{#timel:xNU|Oct 31}} <!--Date of Next Full Moon in GMT--> ) <= 24*60*60 | Full Moon |

Revision as of 16:30, 9 October 2020

Scratch

110299926

All server time:

  • in 2 days Sat, 30 Mar 2024 20:00:00 -0400
  • today Thu, 28 Mar 2024 20:00:00 -0400
  • now Fri, 29 Mar 2024 10:52:06 -0400
  • oct 1 Mon, 30 Sep 2024 20:00:00 -0400
  • 1727740800 seconds since fixed time (#time and #timel each renders both given time and fixed time as same time zone)
  • -14400 local server offset from GMT in seconds

3 day chart (proof of concept / tGMTing)

Purge (This link will clear the page's cache, which may be necessary to fetch the current day correctly.)

Day Moon phase
Today GMT (Fri, 2024-Mar 29) Waning Gibbous
Tomorrow (Sat) Waning Gibbous
In 2 Days (Sun) Waning Gibbous
In 3 Days (Mon) Waning Gibbous

GMT

Current testing seems to indicate the game uses GMT for moon phase.

Oct 1 - full
Oct 10 - last q
Oct 16 - new
Oct 23 - first q
Oct 31 - full

EST(Server Time)

Oct 1 - full
Oct 9 - last q
Oct 16 - new
Oct 23 - first q
Oct 31 - full