Hi, been struggling with the following for quite many hours now and I just don't seem to figure out how to go about it:
I have an application where I want to have certain things done at certain intervals or on specific time of day, at optionally specific day of week etc. Have not yet figured out all the combos that make sense. But the basic idea is that the user should be able to define it via a string. My plan is to use a Period if the user specifies a period (the initialization string starts with 'P') and this is easy and works. For checking daily/weekly events Partial seems a good fit with partial.isMatching(new DateTime()). However I'm at loss on how to create / use a parser to create Partial object. I've tried several different approaches with no success. I could of course create a simple hand crafter parser but this is not so appealing because it will not turn out so simple, I'm sure, and I feel this is something I should be able to hack together easily from joda ingredients. Only I can't, although I've tried to do my homework and read the documentation and google the web. Any thoughts will be appreciated. br Kusti ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Joda-interest mailing list Joda-interest@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/joda-interest