xsl-list
[Top] [All Lists]

RE: conversion of time and/or date

2003-06-01 14:01:37
There's a wide range of date handling functions in XSLT 2.0 - some of
them (not all) are implemented in Saxon 7.5.

For XSLT 1.0 processors, take a look at the functions in www.exslt.org

Michael Kay

-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
jefke peters
Sent: 28 May 2003 13:46
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] conversion of time and/or date


I woul like to convert a time from a datetime datatype to the 
local time by 
using the zone time at the end. Are there functions to do 
this? e.g. 2003-05-28T12:40:50+02:00 I would like to show the 
local time whitch should be : 14:40:50 (12:40:50 + 
02:00)? Is there a function for this. Because it's a lot of 
work if you have 
to write all the code yourself.

Is there also a way to add one day to a date whithout having 
to make all the 
calculations.
when you added the zone time to the UTC/GMT and the time has 
crossed the 24 
hours limit then the date should be the date of the next day. 
e.g. UTC date: 2003-05-28  UTC time: 23:40:50 so when you add 
the 02:00 time 
zone then the locel time should become: 01:40:50 and the 
local day should 
be: 2003-05-29

_________________________________________________________________
Ontvang je Hotmail & Messenger berichten op je mobiele 
telefoon met Hotmail 
SMS http://www.msn.be/gsm/smsservices


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>
  • RE: conversion of time and/or date, Michael Kay <=