cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jasha Joachimsthal" <j.joachimst...@hippo.nl>
Subject RE: Manipulate date with xsl
Date Mon, 04 Dec 2006 14:52:33 GMT
Hi,
 
you can use http://www.exslt.org/date/functions/sum/date.sum.html
 
Please note that date:month-in-year() may behave differently in some xslt processors (january
may be 0 or 1 which results in decvember being 11 or 12 resp).
 
Jasha Joachimsthal 

--------- 

Hippo 
Oosteinde 11 
1017 WT Amsterdam 
The Netherlands 
+31 (0)20 5224466 

jasha@hippo.nl 
www.hippo.nl 

-----Original Message-----
From: S├ębastien Geindre [mailto:sebastien.geindre@meteo.fr]
Sent: maandag 4 december 2006 15:50
To: users@cocoon.apache.org
Subject: Manipulate date with xsl


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