@Component @Singleton @Named(value="date") public class DateScriptService extends Object implements org.xwiki.script.service.ScriptService
Constructor and Description |
---|
DateScriptService() |
Modifier and Type | Method and Description |
---|---|
String |
displayTimeAgo(Date dateToDisplay)
Display a date relatively to the current date and using the locale of the current user.
|
String |
displayTimeAgo(Date dateToDisplay,
Locale locale)
Display a date relatively to the current date and using the given locale.
|
Copyright © 2004–2021 XWiki. All rights reserved.