[xwiki-devs] Pretty Time library
Could be useful: http://ocpsoft.com/prettytime/ Idea of usage: For ex we could use that to show the last modified document dates for dates in the past week (for ex): "Document created 2 days ago" It's in the maven central repo and it's under LGPL -Vincent
Interesting. This need came up in a customer meeting. This is very usefull. Ludovic Vincent Massol a écrit :
Could be useful: http://ocpsoft.com/prettytime/
Idea of usage: For ex we could use that to show the last modified document dates for dates in the past week (for ex): "Document created 2 days ago"
It's in the maven central repo and it's under LGPL
-Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
We are using PrettyTime on a site with a lot of user generated content for a couple of months now and got very positive user response to the new date format. Its easy to setup and customize (resolution, when to show "x minutes ago" and when the full date or combination of both). It's worth a try! Greetings, Juri Ludovic Dubost-2 wrote:
Interesting. This need came up in a customer meeting. This is very usefull.
Ludovic
Vincent Massol a écrit :
Could be useful: http://ocpsoft.com/prettytime/
Idea of usage: For ex we could use that to show the last modified document dates for dates in the past week (for ex): "Document created 2 days ago"
It's in the maven central repo and it's under LGPL
-Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Ludovic Dubost Blog: http://blog.ludovic.org/ XWiki: http://www.xwiki.com Skype: ldubost GTalk: ldubost
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- View this message in context: http://n2.nabble.com/Pretty-Time-library-tp3593296p3596641.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
Has this been implemented into XWiki? -- View this message in context: http://xwiki.475771.n2.nabble.com/Pretty-Time-library-tp3593296p7580275.html Sent from the XWiki- Dev mailing list archive at Nabble.com.
On Jul 10, 2012, at 1:40 PM, Hamster wrote:
Has this been implemented into XWiki?
What would be nice is if someone contributes an extension on extensions.xwiki.org: * A JAR extension with a ScriptService component so that the api can be used from any scripting language It should take about 1 hour to do so. Thanks -Vincent
For my knowledge, what's the added-value compared to $datetool.whenIs() ? 2012/7/10 Vincent Massol <[email protected]>:
On Jul 10, 2012, at 1:40 PM, Hamster wrote:
Has this been implemented into XWiki?
What would be nice is if someone contributes an extension on extensions.xwiki.org:
* A JAR extension with a ScriptService component so that the api can be used from any scripting language
It should take about 1 hour to do so.
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Jul 11, 2012, at 3:25 PM, Jeremie BOUSQUET wrote:
For my knowledge, what's the added-value compared to $datetool.whenIs() ?
Cool, didn't know there was this :) So indeed, less incentive to use pretty time. Thanks -Vincent
2012/7/10 Vincent Massol <[email protected]>:
On Jul 10, 2012, at 1:40 PM, Hamster wrote:
Has this been implemented into XWiki?
What would be nice is if someone contributes an extension on extensions.xwiki.org:
* A JAR extension with a ScriptService component so that the api can be used from any scripting language
It should take about 1 hour to do so.
Thanks -Vincent
participants (5)
-
Hamster -
Jeremie BOUSQUET -
Juri Kuehn -
Ludovic Dubost -
Vincent Massol