Scheduler Date Format

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Scheduler Date Format

Ryan Puddephatt

Hi all,

            I have been trying to use the start-time on the scheduler processor setting it to a date in the future, I tried all the common date styles I could think of and even used the examples provided on the DateFormat JavaDoc provided. In the end I looked directly at the Java file where all your formats were kept org.orbeon.oxf.util.ISODateUtils.java. Perhaps you could show these formats in the documentation along with examples?

 

Thanks

 

Ryan

 

Ryan Puddephatt

Software Engineer

TFX Group - IT UK

1 Michaelson Square

Livingston

West Lothian

Scotand

EH54 7DP

 

* [hidden email]

( 01506 407 110

7  01506 407 108

 

 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Scheduler Date Format

Erik Bruchez
Administrator
Ryan,

 > I have been trying to use the start-time on the scheduler processor
 > setting it to a date in the future, I tried all the common date
 > styles I could think of and even used the examples provided on the
 > DateFormat JavaDoc provided. In the end I looked directly at the
 > Java file where all your formats were kept
 > org.orbeon.oxf.util.ISODateUtils.java. Perhaps you could show these
 > formats in the documentation along with examples?

Good point. In fact, <start-time> should ideally contain a value of
type xs:dateTime (or the constant "now") and be validated as is.

I don't think ISODateUtils is doing the best it could to parse
xs:dateTime values, but values of the form 2006-06-10T16:20:12 and
2006-06-10T16:20:12.514 will work.

I have updated the schema of the Scheduler to force xs:dateTime, and
added two examples to the doc.

-Erik

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws