dateTime to Epoch and vice versa xslt

前端 未结 2 1507
挽巷
挽巷 2021-01-19 12:01

I have been trying to convert a given dateTime to epoch time and also a given epoch time to dateTime. I am quite new to xslt and have been struggling with this quite for som

2条回答
  •  星月不相逢
    2021-01-19 12:34

    To convert Unix time to ISO 8601 date-time:

    
    

    To convert ISO 8601 date-time to Unix time;

    
    

    Requires XSLT 2.0.

    Working demo: http://xsltransform.net/94rmq5L

提交回复
热议问题