Template:CURRENTSECOND: Difference between revisions

From MapleWiki
Jump to navigation Jump to search
(Created page with '{{{{{subst|}}}#time:s}}<noinclude>')
 
No edit summary
Line 1: Line 1:
{{{{{subst|}}}#time:s}}<noinclude>
{{{{{subst|}}}#time:s}}<noinclude>
----
This template extracts the current integer second on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server).
The shown value should match the rightmost two digits of {{CURRENTTIMESTAMP}}.
; Syntax&#58;
: <nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki>
: Use {&#123;subst:{{PAGENAME}}|subst=subst:&#125;} to substitute the current second.
; Formula&#58;
: <nowiki>{{#expr:s}}</nowiki>
: {&#123;subst:{{PAGENAME}}&#125;} copies this code ready for [[Help:Substitution#Optional_substitution|optional substitution]] into another template.
; Warning&#58;
: Pages asking for the current second often also need other parts of {{evaldemo|CURRENTTIMESTAMP|s==}}, and different "current" templates and variables can reflect different timestamps near hh:mm:59.
; See also&#58;
: {{Lts|CURRENTMINUTE}}
: {{Lts|CURRENTSECOND}}

Revision as of 14:22, 12 August 2009

44


This template extracts the current integer second on two digits (between 00 and 59) from the current UTC time (as set on the Wikimedia server). The shown value should match the rightmost two digits of 20250108205744.

Syntax:
{{CURRENTSECOND}}
Use {{subst:CURRENTSECOND|subst=subst:}} to substitute the current second.
Formula:
{{#expr:s}}
{{subst:CURRENTSECOND}} copies this code ready for optional substitution into another template.
Warning:
Pages asking for the current second often also need other parts of Template:Evaldemo, and different "current" templates and variables can reflect different timestamps near hh:mm:59.
See also:
Template:Lts
Template:Lts