Functions

Link copied to clipboard
abstract fun aboutAMinute(minutes: Int, dateInMillis: Long): String

Format when time is about a minute

Link copied to clipboard
open fun aboutAMonth(days: Int, dateInMillis: Long): String

Format when time is about a month

Link copied to clipboard
abstract fun aboutAnHour(minutes: Int, dateInMillis: Long): String

Format when time is about an hour

Link copied to clipboard
open fun aboutAYear(year: Int, dateInMillis: Long): String

Format when time is about a year

Link copied to clipboard
abstract fun aDay(hours: Int, dateInMillis: Long): String

Format when time is a day

Link copied to clipboard
abstract fun days(days: Int, hours: Int, dateInMillis: Long): String

Format when time is in days

Link copied to clipboard
abstract fun hours(hours: Int, minutes: Int, dateInMillis: Long): String

Format when time is in hours

Link copied to clipboard
abstract fun lessThanOneMinute(seconds: Int, dateInMillis: Long): String

Format when time is less than a minute

Link copied to clipboard
abstract fun minutes(minutes: Int, seconds: Int, dateInMillis: Long): String

Format when time is in minutes

Link copied to clipboard
open fun months(months: Int, days: Int, dateInMillis: Long): String

Format when time is in months

Link copied to clipboard
open fun prefixAgo(): String

Example: prefixAgo() 1 min suffixAgo()

Link copied to clipboard
open fun prefixFromNow(): String

Example: prefixFromNow() 1 min suffixFromNow()

Link copied to clipboard
open fun suffixAgo(): String

Example: prefixAgo() 1 min suffixAgo()

Link copied to clipboard
open fun suffixFromNow(): String

Example: prefixFromNow() 1 min suffixFromNow()

Link copied to clipboard
open fun weeks(weeks: Int, days: Int, dateInMillis: Long): String

Format when time is in weeks

Link copied to clipboard
open fun wordSeparator(): String

word separator when words are concatenated

Link copied to clipboard
open fun years(years: Int, months: Int, dateInMillis: Long): String

Format when time is in years