cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S├ębastien Geindre <sebastien.gein...@meteo.fr>
Subject Manipulate date with xsl
Date Mon, 04 Dec 2006 14:49:31 GMT
hello,

I'd like to add x hours to a date, e.G. :
2006-11-14T16:30:00.000Z  + 9h20  = 2006-11-15T01:50:00.000Z

Is there any xslt library for date manipulating ?

Thanx,
S├ębastien.

In XML, from
<meta>
<productScale>local</productScale>
<productType>ice</productType>
<issuedTime>2006-11-14T12:05:13.000Z</issuedTime>
<analysisTime>2006-11-14T12:00:00.000Z</analysisTime>
<observationTime/>
<forecastTime>00</forecastTime>
</meta

i'd like to transform into :
<meta>
<productScale>local</productScale>
<productType>ice</productType>
<validityTime> /_*analysisTime + 
forecastTime*_=/2006-11-15T01:50:00.000Z/<//<validityTime>>
<analysisTime>2006-11-14T12:00:00.000Z</analysisTime>
<forecastTime>00</forecastTime>
</meta

Mime
View raw message