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

Re: Doing Math on Durations and Creating dayTimeDurati

Subject: Re: Doing Math on Durations and Creating dayTimeDuration Instances
From: "Jirka Kosek jirka@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 6 Oct 2016 10:24:06 -0000
Re:  Doing Math on Durations and Creating dayTimeDurati
On Thu, Oct 6, 2016, at 11:40, Eliot Kimber ekimber@xxxxxxxxxxxx wrote:
> I'm using XSLT to extract timing information from logs in order to
> determine the duration of actions. Each log item has a time stamp in the
> usual format (2016-10-05T15:52:17.525:+0200).

And why are you simply not just subtracting two dateTimes, something
like:

xs:dateTime("2015-01-01T12:00:00Z") -
xs:dateTime("2014-07-10T12:00:00Z")

This will give you back duration. Or perhaps I have misunderstood...

Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@xxxxxxxx      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

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.