模板:CURRENTSECOND
外觀
13
![文件圖示](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
該模板返回當前維基媒體伺服器上所設置 UTC 時間的秒位(範圍從00至59)。
返回值應為這個時間戳的最後兩位數:20240721183913。
- 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(編輯 討論 連結 歷史)
編者可以在本模板的沙盒 (建立 | 鏡像)和測試樣例 (建立)頁面進行實驗。 本模板的子頁面。 |