模板:CURRENTSECOND
外觀
08
模板文件
該模板返回當前維基媒體服務器上所設置 UTC 時間的秒位(範圍從00至59)。
返回值應為這個時間戳的最後兩位數:20241102224408。
- 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(編輯 討論 連結 歷史)