What is the easiest way to get current unix timestamp via XSL
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.