Template:CURRENTSECOND

From Template Wiki, a repository of MediaWiki templates.
Jump to navigation Jump to search

50

Template documentation

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

Syntax:
{{CURRENTSECOND}}
Use {{subst:CURRENTSECOND}} 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}} = 20210307215250, 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)
Wikipedia logo This template uses material from the Wikipedia template Template:CURRENTSECOND, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).