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 May 21st, 2008, 01:34 PM
Authorized User
Join Date: May 2008
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anboss
Default date and time in EST time zone

the function date:add('1970-01-01T00:00:00.000Z', date:duration($currMillis div 1000)) returns the date in GMT time zone. how to get the date and time in the EST time zone.

Old May 21st, 2008, 01:42 PM
mhkay's Avatar
Wrox Author
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts

The functions you refer to look like extension functions, not base XSLT functions, so I can't really help you without knowing what technology you are using.

However, the obvious guess would be to use a date in timezone -05:00 (if that's what you mean by EST) rather than one in timezone Z as the first argument.

XSLT 2.0 gives you lots of control over dates, times, and timezones, without resorting to extension functions.

Michael Kay
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference

Similar Threads
Thread Thread Starter Forum Replies Last Post
time zone & day light time rajn ASP.NET 1.0 and 1.1 Professional 0 August 7th, 2007 05:02 PM
help on zone time adjustment kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 October 30th, 2006 11:34 PM
Zone Time kherrerab BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 20th, 2006 12:30 PM
Time zone trouble! MichaelTJ .NET Web Services 2 January 31st, 2005 06:05 AM
getting time zone nerssi Javascript 2 December 22nd, 2004 10:56 AM

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