Added in API level 24
RelativeUnit
class RelativeUnit
kotlin.Any | ||
↳ | kotlin.Enum<android.icu.text.RelativeDateTimeFormatter.RelativeUnit> | |
↳ | android.icu.text.RelativeDateTimeFormatter.RelativeUnit |
Represents the unit for formatting a relative date. e.g "in 5 days" or "in 3 months"
Summary
Enum values | |
---|---|
Days |
|
Hours |
|
Minutes |
|
Months |
|
Seconds |
|
Weeks |
|
Years |