Hi Eugen,
Eugen Colesnicov wrote:
Hi Sergiu!
I played before with jodatime. It have some problems ...
For example, I tried to use example script from plugin home page (it can be
usefull in my situation) and this script doesn't working:
#set($formatter =
$xwiki.jodatime.getDateTimeFormatterForPattern('yyyy.MM.dd'))
#set($myBirthday = $formatter.parseDateTime('2007.11.25'))
#set($daysLeft = $myBirthday.minus($now.millis))
$daysLeft.getDayOfYear() days left till my birthday!
Also joda time is badly described - for all these reasons I used datetool.
Have you tried to use Velocity ComparisonDateTool? I'm able to use
DateTool like you, but I don't know how to call methods from
ComparisonDateTool. Are they available within Xwiki? Thanks!
http://ebiotic.net/bin/ICT/Date
About query ... Better for me - XWQL, but all my
tryings to use any dates in
XWQL gives some errors (most of all - java errors in a translation from XWQL
to hql ...). I am not a professional in a XWQL and HQL (I am not sure - this
is my error or bug), and Ricardo gave working example of using HQL - for
this reason I used ready query example.
If you can give working example of using dates in a XWQL - will be great!
Also I tried examples from here:
http://dev.xwiki.org/xwiki/bin/view/DesignArchive/XWikiQueryLanguageSpecifi…
(second script) - but give me error.
--
Ricardo RodrÃguez
CTO
eBioTIC.
Life Sciences, Data Modeling and Information Management Systems