跳至內容

模板:CURRENTSECOND

維基百科,自由的百科全書

38

文件圖示 模板文件

該模板返回當前維基媒體伺服器上所設置 UTC 時間的秒位(範圍從00至59)。

返回值應為這個時間戳的最後兩位數:20240704203338。

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(編輯 討論 連結 歷史)