Package-level declarations
Types
Functions
Link copied to clipboard
Get current time in Calendar format.
Link copied to clipboard
Get current LocalDate.
Link copied to clipboard
Get current LocalDateTime.
Link copied to clipboard
Get current LocalTime.
Link copied to clipboard
Get current time in milliseconds.
Link copied to clipboard
fun Calendar.timeAgo(locale: String = TimeAgo.default, clock: Calendar = nowInCalendar(), minCutOff: DateLimitation = None, isWeekFormatEnabled: Boolean = false, allowFromNow: Boolean = false): String
fun Date.timeAgo(locale: String = TimeAgo.default, clock: Date = nowInDate(), minCutOff: DateLimitation = None, isWeekFormatEnabled: Boolean = false, allowFromNow: Boolean = false): String
fun Long.timeAgo(locale: String = TimeAgo.default, clock: Long = nowInMilliseconds(), minCutOff: DateLimitation = None, isWeekFormatEnabled: Boolean = false, allowFromNow: Boolean = false): String
fun Instant.timeAgo(locale: String = TimeAgo.default, clock: Instant = now(), minCutOff: DateLimitation = None, isWeekFormatEnabled: Boolean = false, allowFromNow: Boolean = false): String
fun LocalDateTime.timeAgo(locale: String = TimeAgo.default, clock: LocalDateTime = nowInLocalDateTime(), minCutOff: DateLimitation = None, isWeekFormatEnabled: Boolean = false, allowFromNow: Boolean = false): String
Formats provided this value to a fuzzy time like 'a moment ago'.