I found the section on operations on times particularly challenging to
understand. I appreciate the precision of the definitions but the lack of
practical examples for some things makes it harder to translate into
practice.
Cheers,
E.
--
Eliot Kimber
http://contrext.com
On 10/6/16, 4:02 PM, "Michael Kay mike(_at_)saxonica(_dot_)com"
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
A lot of people miss this one. By providing a convenient operator for
this common operation, we ensured that people searching the function
library wouldn't find it...
Michael Kay
Saxonica
On 6 Oct 2016, at 13:37, Eliot Kimber ekimber(_at_)contrext(_dot_)com
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
I think that's what I missed: I didn't realize you could do arithmetic
that directly.
I'll try it.
Cheers,
Eliot
--
Eliot Kimber
http://contrext.com
On 10/6/16, 12:24 PM, "Jirka Kosek jirka(_at_)kosek(_dot_)cz"
<xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
On Thu, Oct 6, 2016, at 11:40, Eliot Kimber ekimber(_at_)contrext(_dot_)com
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(_at_)kosek(_dot_)cz 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
------------------------------------------------------------------
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--