Template:EventTimeLeftUnix: Difference between revisions
From NOISZ Wiki
m (1 revision imported: yolo import of unofficial noisz wiki pt2) |
RiceEmpress (talk | contribs) (added documentation) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| 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]] | |||
{{NOISZ Timer Flowchart}} | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20: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