[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: format-dateTime() - displaying multiple time zones

Subject: RE: format-dateTime() - displaying multiple time zones
From: tom tom <tomxsllist@xxxxxxxxxxx>
Date: Mon, 12 Jan 2009 09:11:15 +0000
RE:  format-dateTime() - displaying multiple time zones
My problem is the UTC time needs to appear in the middle of the picture I am
trying to create, ie:

12:45 local time [17:45 (GMT)] Monday 13th December

Just having one picture to render this rather than 3 would have alot of
benefits for our system. I was hoping there was a solution such as embedding a
variable holding the formatted GMT time in the picture.

Tom

----------------------------------------
> Date: Sun, 11 Jan 2009 19:58:05 -0500
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> From: gkholman@xxxxxxxxxxxxxxxxxxxx
> Subject: Re:  format-dateTime() - displaying multiple time zones
>
> At 2009-01-11 22:29 +0000, tom tom wrote:
>>I am using the format-dateTime() function. In my picture I want to
>>display two times: the local time as well as UTC. Is there a way to
>>acheive this in one picture? Here's a starting point:
>>
>>format-dateTime($localDateTime, ' [h]:[m]:[s] ', (), (), ())
>
> No, you have to adjust the date time to UTC and format that.
>
> This is the example I have in my training material for displaying UTC:
>
> format-dateTime(
> adjust-dateTime-to-timezone(current-dateTime(),
> xsd:dayTimeDuration('PT0H')),
> '[Y0001]-[M01]-[D01] [H01]:[m01]z')
>
> I hope this helps.
>
> . . . . . . . . . . Ken
>
> --
> Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
> : Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
> Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
> Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
> Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
> G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
> Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
> Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc
> Legal business disclaimers: http://www.CraneSoftwrights.com/legal
>

_________________________________________________________________
Choose the perfect PC or mobile phone for you
http://clk.atdmt.com/UKM/go/130777504/direct/01/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.