Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 21st, 2012, 10:22 AM
Authorized User
 
Join Date: Oct 2011
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Default Timestamp issue

Hi,

Was hoping someone could help me.
I have written some XSTL, that will run across multiple zime zones. Is there any way I can figure out (programatically) which time zone the transform is running in so I can offset the timestamp variable innthe output xml.
Any ideas would be really difficult . (Also needs to take into accoutr daylight saving hours)
 
Old February 21st, 2012, 10:53 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

XSLT 2.0 defines various methods, such as current-date() and implicit-timezone() that could certainly do what you are asking.

In XSLT 1.0 you can't get that information directly, so would either have to pass it in as a parameter, or use an extension function to call out to an external source (e..g java, .net etc).
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?
 
Old February 21st, 2012, 11:27 AM
Authorized User
 
Join Date: Oct 2011
Posts: 30
Thanks: 2
Thanked 0 Times in 0 Posts
Default

THanks for that Sam......
I had figured that out.. but unfortunately, I need the time with respect to Sydney not London .. and the time difference between Sydney and London fluctuates between nine and elevewn hours ahead depending on what time of year....

Any ideas
Anthony





Similar Threads
Thread Thread Starter Forum Replies Last Post
TimeStamp nay_ctg BOOK: Beginning Cryptography with Java 1 August 7th, 2008 07:37 PM
Timestamp Problem hernann Java Databases 5 September 26th, 2007 07:51 AM
GridView + timestamp victorsj ASP.NET Espanol 0 August 29th, 2006 10:43 AM
timestamp isheikh BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 November 18th, 2004 06:23 PM
UNIX Timestamp apek PHP How-To 4 January 20th, 2004 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.