0
我無法獲得所需的輸出。我已經從網上搜索了很多,但仍然沒有運氣,這就是爲什麼我張貼這個簡單的問題(也許大多數專家)XSLT 2.0時間顯示
此代碼將生成當前時間日期與UTC格式
<xsl:variable name="utc"
select="
adjust-dateTime-to-timezone(
current-dateTime(),
xs:dayTimeDuration('PT0H'))
"/>
輸出如。 2015-11-08T12:13:18.634Z
我只是想顯示年份和時間不秒後DATAS 「.634Z」 所需的輸出:
2015-11-08T12:13:18
感謝。
使用帶有適當圖片字符串的'format-dateTime',http://www.w3.org/TR/xslt20/#date-time-examples處的文檔應該有所幫助。 –