Hi again, I remembered that I had recently been trying to do some minor date operations on mine XWiki, to represent differences in milliseconds in more UI info, like days, months, and years.
Then I discovered a useful method $date.whenIs($creationDateOfDocument).full
which can provide a desired input years or weeks or … ago depending on configuration. But AFAIU XWiki is using 3.2 VelocityTool and regarding official documentation of Apache Velocity it can be customized, but XWiki doesn’t have implementation of VelocityView which is responsible for text representation.
Currently, if you call this method with full
attribute you’ll receive only the first closest difference between before and now - it can be a year or month or days.
OMV, if to to allow such configuration for in XWiki it might be same as this proposal.
+1 from me for both options