Difference between revisions of "Template:Before"

From Conservapedia
Jump to navigation Jump to search
m (day parameter should be 3)
(Want it to increment at midnight (Eastern Time))
Line 1: Line 1:
−
<includeonly>{{#ifexpr: {{CURRENTYEAR}} < {{{1}}} or (  {{CURRENTYEAR}} = {{{1}}} and ( {{CURRENTMONTH}} < {{{2}}} or ( {{CURRENTMONTH}} = {{{2}}} and {{CURRENTDAY}} < {{{3}}} ) ) ) | {{{4}}} | {{{5}}} }}</includeonly><noinclude>
+
<includeonly>{{#expr: -( {{#time:U}} - {{#time:U|{{{1}}}-{{{2}}}-{{{3}}} -5}} ) / 86400 +0.5 round 0}}</includeonly><noinclude>
 
See examples in [[template talk:before]]</noinclude>
 
See examples in [[template talk:before]]</noinclude>
 
[[Category:Navigation box]]
 
[[Category:Navigation box]]

Revision as of 03:40, January 16, 2017

See examples in template talk:before