LocalTimeStringResolver

data class LocalTimeStringResolver(time: LocalTime) : StableStringResolver

A StableStringResolver that takes a LocalTime value and resolves it to a String representation using a 12 or 24 hour format pattern and, for 12 hour format, a meridiem (am/pm) string. The selection of time format and meridiem string resources is determined by the Context's 24 hour format preference.

This string resolver should be used where LocalTime is preferred to Instant. I.e. where there is no date element relating to the given time (e.g. business opening hours).

Constructors

Link copied to clipboard
constructor(time: LocalTime)

Functions

Link copied to clipboard
open override fun get(context: Context): String

Resolves to a String based on the given context. The resulting value must be equal for a given context, but may differ given a different context. E.g. due to differing locales.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)