edit:
this code:
public string tminus(long id) { plan myentity = entity.find.byid(id); string timeago = myentity.checkintime.since(); return "timeago"; } i'm getting error when try use since() method:
cannot find symbol [symbol: method since()] [location: class java.util.date]
are talking playframework 1.x? if case can use java extensions in groovy template:
${mydate.since(...)} you can use java extensions in rythm template if use rythm plugin:
@mydate.since(...) if want use java extensions in java program, have way:
templates.javaextensions.since(mydata, ...)
Comments
Post a Comment