public interface Messages
extends com.vityuk.ginger.Localizable
Localizable interface to obtain humanized relative-time messages.| Modifier and Type | Method and Description |
|---|---|
String |
daysAgo(int days)
Returns a humanized message for "days ago".
|
String |
daysWithin(int days)
Returns a humanized message for "days within".
|
String |
hoursAgo(int hours)
Returns a humanized message for "hours ago".
|
String |
hoursWithin(int hours)
Returns a humanized message for "hours within".
|
String |
minutesAgo(int minutes)
Returns a humanized message for "minutes ago".
|
String |
minutesWithin(int minutes)
Returns a humanized message for "minutes within".
|
String |
monthsAgo(int months)
Returns a humanized message for "months ago".
|
String |
monthsWithin(int months)
Returns a humanized message for "months ago".
|
String |
now()
Returns a humanized message for "now".
|
String |
secondsAgo(int seconds)
Returns a humanized message for "seconds ago".
|
String |
secondsWithin(int seconds)
Returns a humanized message for "seconds within".
|
String |
weeksAgo(int weeks)
Returns a humanized message for "weeks ago".
|
String |
weeksWithin(int weeks)
Returns a humanized message for "weeks within".
|
String |
yearsAgo(int years)
Returns a humanized message for "years ago".
|
String |
yearsWithin(int years)
Returns a humanized message for "years within".
|
String now()
String yearsAgo(int years)
years - the number of yearsString monthsAgo(int months)
months - the number of monthsString weeksAgo(int weeks)
weeks - the number of weeksString daysAgo(int days)
days - the number of daysString hoursAgo(int hours)
hours - the number of hoursString minutesAgo(int minutes)
minutes - the number of minutesString secondsAgo(int seconds)
seconds - the number of secondsString yearsWithin(int years)
years - the number of yearsString monthsWithin(int months)
months - the number of monthsString weeksWithin(int weeks)
weeks - the number of weeksString daysWithin(int days)
days - the number of daysString hoursWithin(int hours)
hours - the number of hoursString minutesWithin(int minutes)
minutes - the number of minutesString secondsWithin(int seconds)
seconds - the number of secondsCopyright © 2017. All rights reserved.