Difference between revisions of "Template:StaticMeetingCountdown"

From Free Software Directory
Jump to: navigation, search
m (-elapsed time after meeting start (timer resets automatically the day after).)
m (-&mdash glitch in branch 2)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifexpr:
+
{{#ifexpr:{{Template:StaticMeetingCountdown/isMeetingDay|day_name={{{day_name|Friday}}}|start_hour_time={{{start_hour_time|12}}}}}
  {{#expr: {{#time: U | next {{{day_name|Friday}}} + {{{start_hour_time|12}}} hours }} - {{#time: U | now }} }} > 3599 and {{#ifeq: {{CURRENTDAYNAME}} | {{{day_name|Friday}}} | 0 | 1}}
+
|&mdash;&mdash;&nbsp;{{#ifexpr:{{Template:StaticMeetingCountdown/meetingRemDays|day_name={{{day_name|Friday}}}|start_hour_time={{{start_hour_time|12}}}}} <= 2|meeting is tomorrow|{{Template:StaticMeetingCountdown/meetingRemDays|day_name={{{day_name|Friday}}}|start_hour_time={{{start_hour_time|12}}}}} days until next meeting}}
| {{#ifexpr: {{#expr: {{#time: U | next {{{day_name|Friday}}} + {{{start_hour_time|12}}} hours }} - {{#time: U | now }} }} > 86400 and {{#ifeq: {{CURRENTDAYNAME}} | {{{day_name|Friday}}} | 0 | 1}}
+
|{{#ifexpr:{{Template:StaticMeetingCountdown/meetingPastHour|day_name={{{day_name|Friday}}}|start_hour_time={{{start_hour_time|12}}}}} > 0||&mdash;&mdash;&nbsp;today's meeting ended}}
  | {{#expr: trunc (({{#time: U | next {{{day_name|Friday}}} + {{{start_hour_time|12}}} hours }} - {{#time: U | now }}) / 86400) }} days until next meeting
 
  | {{#expr: trunc (({{#time: U | today + {{{start_hour_time|12}}} hours + 5 hours }} - {{#time: U | now }} ) / 3600) }} hours until next meeting
 
  }}
 
| {{#ifexpr: {{#expr: (({{#time: U | today + {{{start_hour_time|12}}} hours + 5 hours }} - {{#time: U | now }}) / 60)}}
 
  | past today's meeting start time
 
  | {{#expr: trunc (({{#time: U | today + {{{start_hour_time|12}}} hours + 5 hours }} - {{#time: U | now }}) / 60)}} minutes until next meeting
 
  }}
 
 
}}
 
}}

Latest revision as of 07:57, 1 May 2020

—— meeting is tomorrow



Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the page “GNU Free Documentation License”.

The copyright and license notices on this page only apply to the text on this page. Any software or copyright-licenses or other similar notices described in this text has its own copyright notice and license, which can usually be found in the distribution or license text itself.