I have a certain duration value (endDate - startDate = duration in milliseconds), i need to get the time difference in such format:
0 years 5 months 3 days ...
I need the mathematical formulas that can help me extract the number of years/months/days/hours/mins/secs from that duration.
I am using XSLT 1.0 and can't use any XPath2.0 date functions. so i need to write the function myself.