Re: removing the 'ago' portion?

Splash Forums PrettyTime Users removing the 'ago' portion? Re: removing the 'ago' portion?


Yes, you need to replace the default message bundle and provide your own on the classpath:

Specifically replace this class:

Or simply create a new locale that is specific for your use-case:


Then set the locale in PrettyTime to:

PrettyTime p = new PrettyTime(new Locale("CUSTOM"));