You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by "Jackson, Douglas" <dj...@ugs.com> on 2007/01/05 17:55:33 UTC

Date functions

Hi!
I am curious what functions I would use with the Ode bpel engine
for some date calculations.  In particular I need the following

1. Get the current time of day (hours & minutes)
2. Add/subtract duration to/from the current time of day
3. compare current time of day to another time of day (checking to see
if current time is within a time range actually)

In general if there is some URL pointing to a specification describing
the functions that can be used in xpath expressions within bpel
processes
I would like to have that.  I am not sure as to which one I should
refer.
Thanks in advance!
-Doug.

Re: Date functions

Posted by Alex Boisvert <bo...@intalio.com>.
Hi Doug,

There are two versions of Saxon:  one commercial (Saxon-SA) and one
open-source (Saxon-B) licensed under the Mozilla Public License 1.0 (MPL).
The open-source version is free (as in beer).

More information at http://saxon.sourceforge.net/

cheers,
alex


On 1/8/07, Jackson, Douglas <dj...@ugs.com> wrote:
>
>
> Hi!
> Alex - Thanks for the references.
>
> I am curious about the licensing impacts of the fact that Ode uses
> Saxon.
>
> Saxon appears to have license fees.  Are those waived when a commercial
> product uses Ode?
> -Doug.
>
> -----Original Message-----
> From: Alex Boisvert [mailto:boisvert@intalio.com]
> Sent: Friday, January 05, 2007 11:20 AM
> To: ode-user@incubator.apache.org
> Subject: Re: Date functions
>
> Hi Doug,
>
> I would suggest using the XPath 2.0 expression language that supports
> many
> date-time manipulation functions:
>
> http://www.w3.org/TR/xquery-operators/#durations-dates-times
>
> We use Saxon for the implementation of XPath 2.0, so you can also refer
> to
> Saxon's own documentation for function details:
>
> http://www.saxonica.com/documentation/functions/intro.html
>
> cheers,
> alex
>
>
> On 1/5/07, Jackson, Douglas <dj...@ugs.com> wrote:
> >
> > Hi!
> > I am curious what functions I would use with the Ode bpel engine
> > for some date calculations.  In particular I need the following
> >
> > 1. Get the current time of day (hours & minutes)
> > 2. Add/subtract duration to/from the current time of day
> > 3. compare current time of day to another time of day (checking to see
> > if current time is within a time range actually)
> >
> > In general if there is some URL pointing to a specification describing
> > the functions that can be used in xpath expressions within bpel
> > processes
> > I would like to have that.  I am not sure as to which one I should
> > refer.
> > Thanks in advance!
> > -Doug.
> >
>

RE: Date functions

Posted by "Jackson, Douglas" <dj...@ugs.com>.
Hi!
Alex - Thanks for the references.

I am curious about the licensing impacts of the fact that Ode uses
Saxon.

Saxon appears to have license fees.  Are those waived when a commercial
product uses Ode?
-Doug.

-----Original Message-----
From: Alex Boisvert [mailto:boisvert@intalio.com] 
Sent: Friday, January 05, 2007 11:20 AM
To: ode-user@incubator.apache.org
Subject: Re: Date functions

Hi Doug,

I would suggest using the XPath 2.0 expression language that supports
many
date-time manipulation functions:

http://www.w3.org/TR/xquery-operators/#durations-dates-times

We use Saxon for the implementation of XPath 2.0, so you can also refer
to
Saxon's own documentation for function details:

http://www.saxonica.com/documentation/functions/intro.html

cheers,
alex


On 1/5/07, Jackson, Douglas <dj...@ugs.com> wrote:
>
> Hi!
> I am curious what functions I would use with the Ode bpel engine
> for some date calculations.  In particular I need the following
>
> 1. Get the current time of day (hours & minutes)
> 2. Add/subtract duration to/from the current time of day
> 3. compare current time of day to another time of day (checking to see
> if current time is within a time range actually)
>
> In general if there is some URL pointing to a specification describing
> the functions that can be used in xpath expressions within bpel
> processes
> I would like to have that.  I am not sure as to which one I should
> refer.
> Thanks in advance!
> -Doug.
>

Re: Date functions

Posted by Alex Boisvert <bo...@intalio.com>.
Hi Doug,

I would suggest using the XPath 2.0 expression language that supports many
date-time manipulation functions:

http://www.w3.org/TR/xquery-operators/#durations-dates-times

We use Saxon for the implementation of XPath 2.0, so you can also refer to
Saxon's own documentation for function details:

http://www.saxonica.com/documentation/functions/intro.html

cheers,
alex


On 1/5/07, Jackson, Douglas <dj...@ugs.com> wrote:
>
> Hi!
> I am curious what functions I would use with the Ode bpel engine
> for some date calculations.  In particular I need the following
>
> 1. Get the current time of day (hours & minutes)
> 2. Add/subtract duration to/from the current time of day
> 3. compare current time of day to another time of day (checking to see
> if current time is within a time range actually)
>
> In general if there is some URL pointing to a specification describing
> the functions that can be used in xpath expressions within bpel
> processes
> I would like to have that.  I am not sure as to which one I should
> refer.
> Thanks in advance!
> -Doug.
>