开发者

Easiest way to get current unix timestamp via XSL

What is the easiest way开发者_运维百科 to get current unix timestamp via XSL


In XSLT2, use the current-dateTime() function.

In XSLT1 you need the EXSLT extension function date-time()

However, be aware that different processors may behave differently if the function is evaluated more than once in a stylesheet. The 'normal' behavior is for all calls in a given transformation to return the same value, so this cannot be used for profiling.

BTW, you could have done a simple Google search on "xslt timestamp" to get this information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜