xsl-list
[Top] [All Lists]

RE: Converting PST to GMT.

2003-01-14 17:28:58
I would use the extension functions at exslt.org, which have some date
arithmetic functions implemented as an XSLT import.  Depending on how
your date is formatted, you may have to parse it first into the format
which the exslt library requires (the canonical XSD format).

-----Original Message-----
From: Avula, Raj [mailto:ravula(_at_)firstam(_dot_)com]
Sent: Tuesday, January 14, 2003 3:53 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'


Thanks for the mail John. But I am on unix.
First I am trying to see whether I can do it in xsl itself.
If not possible I will go for C++ implementation(using extension
function).

Thanks,
Raj....

-----Original Message-----
From: John Aschenbrenner [mailto:jaschenbrenner(_at_)ignitionmts(_dot_)com]
Sent: Tuesday, January 14, 2003 3:31 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] Converting PST to GMT.


Or if you are using Microsoft technology you could call a script from
within
a CDATA section and then use the VB DateAdd function.

Let me know if you are interested.

-----Original Message-----
From: Peter Van de Water 
[mailto:peter(_dot_)vandewater(_at_)salestech(_dot_)co(_dot_)nz]
Sent: Tuesday, January 14, 2003 2:47 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] Converting PST to GMT.


ahh, good point :-)

What about convert to zone-specific unix timestamp, make required
adjustment
(including daylight savings), convert back. Then won't have to
specifically
deal with unit rollover.

Peter

-----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 
Avula, Raj
Sent: Wednesday, 15 January 2003 10:49 a.m.
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] Converting PST to GMT.



Thanks for the reply peter. But this is not as simple as it looks
like.
I have to do "hours += 8" from last Sunday of  October to last Sunday
of
April
and "hours += 7" for the rest. After adding to hours, if it exceeds
24, I
have to
add 1 to date and if date is 30 or 31st month should be incremented
and so
on..
I am just wondering, if there is some standard logic that I can use.
Other wise may be I will start writing it by myself.

Thanks,
Raj..

-----Original Message-----
From: Peter Van de Water 
[mailto:peter(_dot_)vandewater(_at_)salestech(_dot_)co(_dot_)nz]
Sent: Tuesday, January 14, 2003 12:28 PM
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: RE: [xsl] Converting PST to GMT.


Pull apart the fields - This is the only tricky bit and depends on
what
format your time is in
Adjust the hours by the required offset
Put the fields back together

Peter

-----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 
Avula, Raj
Sent: Wednesday, 15 January 2003 8:48 a.m.
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: [xsl] Converting PST to GMT.



Hi All,
      I am trying to convert Pacific Standard Time (DateTime) to GMT
using
XSL.
Can someone point me to the place where I can get the logic or
if possible xsl code snippet.

Thanks,
Raj...

"MMS <firstam.com>" made the following
 annotations on 01/14/03 11:52:38

------------------------------------------------------------------------
--
--
--
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED
SOLELY
FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN
CONFIDENTIAL,
PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE
INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE
TO
SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS
MESSAGE
OR
ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR,
PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND
ALL
COPIES OF IT FROM YOUR SYSTEM."


========================================================================
==
==
==


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

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


"MMS <firstam.com>" made the following
 annotations on 01/14/03 13:51:42

------------------------------------------------------------------------
--
--
--
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED
SOLELY
FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN
CONFIDENTIAL,
PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT THE ADDRESSEE
INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF THIS MESSAGE
TO
SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR DISTRIBUTE THIS
MESSAGE
OR
ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS MESSAGE IN ERROR,
PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE THIS MESSAGE AND
ALL
COPIES OF IT FROM YOUR SYSTEM."


========================================================================
==
==
==


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

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

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


"MMS <firstam.com>" made the following
 annotations on 01/14/03 15:56:12

------------------------------------------------------------------------
--
----
"THIS E-MAIL MESSAGE AND ANY FILES TRANSMITTED HEREWITH, ARE INTENDED
SOLELY FOR THE USE OF THE INDIVIDUAL(S) ADDRESSED AND MAY CONTAIN
CONFIDENTIAL, PROPRIETARY OR PRIVILEGED INFORMATION.  IF YOU ARE NOT
THE
ADDRESSEE INDICATED IN THIS MESSAGE (OR RESPONSIBLE FOR DELIVERY OF
THIS
MESSAGE TO SUCH PERSON) YOU MAY NOT REVIEW, USE, DISCLOSE OR
DISTRIBUTE
THIS MESSAGE OR ANY FILES TRANSMITTED HEREWITH.  IF YOU RECEIVE THIS
MESSAGE IN ERROR, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND DELETE
THIS MESSAGE AND ALL COPIES OF IT FROM YOUR SYSTEM."


========================================================================
==
====


 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>