Re: [xslt] extension date function bug?



Ok, but how can I do the same thing (adjusted to my local time zone) with libexslt? 

I'd like to receive the result of ctime. 


Cheer 


--Marco 

>The man page for ctime also says: 
>The call ctime(t) is equivalent to asctime(localtime(t)). 
> 
>Which means it is adjusted to your local time zone. libexslt is correct. 
> 
>Charlie B. 

Quoting spinmar@interfree.it: 

>> 
>> Hi all, 
>> 
>> I have a problem with exslt function in libxslt 
>> 
>> I have an xml file with a tag LMT (seconds from the epoch) whose value 
>> is 1102028400. 
>> 
>> I have a perl program which simply call ctime on this value: the result 
>> is 
>> 
>> Fri Dec 3 0:00:00 2004 
>> 
>> If I try to use exslt (I'm using libxslt 1.0.33) whithin a xsl: 
>> 
>> ..... 
>> 
>> ........ 
>> 
>> I obtain: 
>> 
>> *2004-12-02T23:00:00Z* 
>> 
>> This is different. I don't know if the problem is perl or exslt. 
>> 
>> The man page of ctime says: 
>> 
>> "When interpreted as an absolute time value, it represents the number 
>> of seconds elapsed since 
>> 00:00:00 on January 1, 1970, Coordinated Universal Time (UTC)" 
>> 
>> In the xsl I used, as you can see, 1970-01-01T00:00:00Z because I want 
>> UTC. Maybe the problem is in date:duration??? 
>> 
>> 
>> Can anyone help me? 
>> 
>> My system info: 
>> 
>> Using libxml 20511, libxslt 10033 and libexslt 722 
>> xsltproc was compiled against libxml 20511, libxslt 10033 and libexslt 
>> 722 
>> libxslt 10033 was compiled against libxml 20511 
>> libexslt 722 was compiled against libxml 20511 
>> 
>> 
>> Thanks 
>> 
>> 
>> 
>> --Marco 


-------------------------------------------------------------------------
NUOVA WEBMAIL DI INTERFREE!

Da oggi Interfree offre a tutti i suoi utenti un nuovissimo servizio 
di WebMail tra i pił evoluti e una qualitą professionale che si rinnova 
di continuo:

-	Controllo antivirus
-	Filtro antispamming
-	Configurazione di account esterni
-	Accesso gratuito a InterDrive dove salvare e organizzare i tuoi 
	file da qualsiasi computer e in qualsiasi momento ...

Iscriviti gratuitamente all'indirizzo http://www.interfree.it e prova il 
nuovo servizio!

Lo Staff di Interfree 
-------------------------------------------------------------------------




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]