跳转到内容

Template:CURRENTSECOND

维基百科,自由的百科全书

57

文档图示 模板文档

该模板返回当前维基媒体服务器上所设置 UTC 时间的秒位(范围从00至59)。

返回值应为这个时间戳的最后两位数:20240702172157。

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 Template:Evaldemo, and different "current" templates and variables can reflect different timestamps near hh:mm:59.
See also:
Template:CURRENTMINUTE(编辑 讨论 链接 历史)
Template:CURRENTSECOND(编辑 讨论 链接 历史)