RE: [xsl] Converting PST to GMT.

Subject: RE: [xsl] Converting PST to GMT.
From: "Avula, Raj" <ravula@xxxxxxxxxxx>
Date: Tue, 14 Jan 2003 15:53:14 -0800
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@xxxxxxxxxxxxxxx]
Sent: Tuesday, January 14, 2003 3:31 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
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.vandewater@xxxxxxxxxxxxxxx]
Sent: Tuesday, January 14, 2003 2:47 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Avula, Raj
Sent: Wednesday, 15 January 2003 10:49 a.m.
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
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.vandewater@xxxxxxxxxxxxxxx]
Sent: Tuesday, January 14, 2003 12:28 PM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
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@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Avula, Raj
Sent: Wednesday, 15 January 2003 8:48 a.m.
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
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


Current Thread