RE: date difference problem

Bhushan Bhangale <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <A9F75F9AB514D611A69D0002A5AD9BED12BE683C@lmnukex05.lastminute.com>
0Y is not missing infact it is showing 27Y whereas it shud say 27D

-----Original Message-----
From: Tom Kise [mailto:[email protected]]
Sent: 04 November 2003 14:01
To: [email protected]
Subject: Re: [exslt] date difference problem



Hi

The missing 0Y and 0M is obviously beacuse they are obsolete when zero. Why 
the sign is missing, I don't know.

Regards
Tom Kise

A:
Julius Blomsgade 7, 3tv
2200 Cobenhavn
Denmark

M: [email protected]
T: 35828111





>From: Bhushan Bhangale <[email protected]>
>To: [email protected]
>Subject: [exslt] date difference problem
>Date: Tue, 4 Nov 2003 11:11:57 -0000
>
>Hi,
>
>I used the date difference template to get the difference between 2 dates. 
>I
>read the whole doc but the template output is not what it should be. Below
>is the call template syntax I used.
>
><xsl:call-template name="date:difference">
>     <xsl:with-param name="start" select="2003-12-31" />
>     <xsl:with-param name="end" select="2003-12-04" />
></xsl:call-template>
>
>The output should be -P0Y0M27D
>
>But the output is P27Y
>
>Please let me knwo if I am doing anything wrong or suggest me someother way
>to get the difference between 2 dates. I just want number of days between 2
>dates.
>
>Bhushan Bhangale
>Senior Systems Executive
>
>address: 4 Buckingham Gate, London SW1E 6JP
>tel: +44 (0)20 7802 4283
>mob: +44 (0)79 5829 5054
>email: [email protected]
>
>do something lastminute.com
>
>________________________________________________________________________
>This e-mail has been scanned for all viruses by Star Internet. The
>service is powered by MessageLabs. For more information on a proactive
>anti-virus service working around the clock, around the globe, visit:
>http://www.star.net.uk
>________________________________________________________________________
>_______________________________________________
>exslt mailing list
>[email protected]
>http://www.exslt.org/list

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://messenger.msn.dk

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.