.

Template:CURRENTSECOND: Difference between revisions

Wikicars, a place to share your automotive knowledge
Jump to navigationJump to search
mNo edit summary
 
mNo edit summary
 
Line 14: Line 14:
: {{Lts|CURRENTMINUTE}}
: {{Lts|CURRENTMINUTE}}
: {{Lts|CURRENTSECOND}}
: {{Lts|CURRENTSECOND}}
[[Category:Template]]
</noinclude>
</noinclude>

Latest revision as of 21:58, 30 October 2010

{{#time:s}}


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 20240605072727.

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 {{ CURRENTTIMESTAMP }} {{#ifeq:+|-|{{{2}}}|=}} 20240605072727, and different "current" templates and variables can reflect different timestamps near hh:mm:59.
See also:
Template:CURRENTMINUTE (edit talk links history)
Template:CURRENTSECOND (edit talk links history)