Template:EventTimeLeftUnix: Difference between revisions
From NOISZ Wiki
RiceEmpress (talk | contribs) No edit summary |
RiceEmpress (talk | contribs) (added documentation) |
||
| Line 2: | Line 2: | ||
<noinclude> | <noinclude> | ||
=Documentation= | =Documentation= | ||
This template details how much time is left on a single event in a standard | This template details how much time is left on a single event in a standard 10-week event cycle, assuming a certain start date. | ||
[[Template:EventTimeLeftUnix|EventTimeLeftUnix]] looks at how many seconds we are into a cycle and divides it by 1209600, and returns a remainder. It subtracts that from 1209600, the amount of seconds in two weeks; this returns the amount of seconds left in this mini 2-week cycle within the greater 10-week cycle. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
{{NOISZ Timer Flowchart}} | {{NOISZ Timer Flowchart}} | ||
</noinclude> | </noinclude> | ||
Latest revision as of 19:16, 5 February 2026
Documentation
This template details how much time is left on a single event in a standard 10-week event cycle, assuming a certain start date.
EventTimeLeftUnix looks at how many seconds we are into a cycle and divides it by 1209600, and returns a remainder. It subtracts that from 1209600, the amount of seconds in two weeks; this returns the amount of seconds left in this mini 2-week cycle within the greater 10-week cycle.
Timer Templates