Difference between revisions of "Template:Fmc2"

From Team Fortress Wiki
Jump to: navigation, search
(The change from Fmp to Fmp2 was addition of 44 minutes and 2.88 seconds to the lunar cycle divider; See Template Talk:Fmp2)
(This change sets up a 24-hour interval centered about an approximation of the real Full Moon (which actually varies by several hours from month to month.)
Line 1: Line 1:
{{#time:{{{date-format|F j, Y \a\t g A}}}<!--  
+
<noinclude>Estimated start time of the next/present Full Moon event:
                                          offset = offset to moon phase number
+
<!-- offset = offset to moon phase number: (-1 -> previous cycle
                                          adjustment = *2 days forward      -->
+
                                          ( 0 -> this cycle
|October 13, 2011 + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 27}} days   <!--
+
adjustment = 1.0 -> 24 hours before      (+1 -> the next cycle
              --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 12}} hours  <!--
+
              0.5 -> actual Full Moon      (+2 -> the next cycle after that
              --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 44}} minutes<!--
+
              0.0 -> 24 hours after        (+3 -> three cycles out
              --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 03}} seconds<!--
+
 
              --> + {{#expr:({{Fmp2}} - {{{adjustment|1}}} + {{{offset|0}}}) * 2}} days}} <!--  
+
-->'''</noinclude>{{#time:{{{date-format|F j, Y \a\t g A}}} <!--
                  /* Remove Noon/Midnight for now since the new model might not hold to that alignment */
+
-->|October 12, 2011 2:06 + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 29 }} days <!--
                    {{#ifexpr:({{Fmp2}} + {{{offset|0}}}) mod 2|{{{noon|Noon}}}|{{{midnight|Midnight}}}}}
+
                    --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 12         <!--
              -->
+
                    --> + ( 24 * (1 - ({{{adjustment|1}}} * 2 ))) }} hours  <!--
 +
                    --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 44}} minutes<!--
 +
                    --> + {{#expr:({{Fmp2}} + {{{offset|0}}}) * 03}} seconds<!--
 +
                    --> }}<noinclude>'''</noinclude>

Revision as of 14:56, 5 December 2015

Estimated start time of the next/present Full Moon event: November 15, 2024 at 1 AM