Template:EventTimeLeft
This details how much time left is on an event, according to the time between now and the next 2-week waypoint in the standard 10-week event cycle.
The countdown clocks for EventTimeLeft and EventCountdown use markers to count down to.
EventTimeLeft is the countdown clock itself, and is:
<span class="countdown" data-end="stop" data-options="short-format" style="display:none;">Ends: <span class="countdowndate">{{#time:r|@{{#expr:{{EventTimeLeftUnix|cyclestart={{{cyclestart}}}}} + {{#time:U|now}}}}}}</span></span> {{#widget: CountdownTimer}}
The time it's counting down to is {{#time:r|@{{#expr:{{EventTimeLeftUnix|cyclestart={{{cyclestart}}}}} + {{#time:U|now}}}}}}, which adds the seconds left in the 2-week cycle that is a single event to the current time in Unix (the amount of seconds elapsed since 1 January 1970), and then counts down to it.
This draws on the CountdownTimer widget required to make the countdown timers actually work; "data-
Timer Templates