LocalTimeStringResolver

data class LocalTimeStringResolver(time: LocalTime) : StringResolver

A StringResolver 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
fun LocalTimeStringResolver(time: LocalTime)

Functions

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

Resolves a String based on the given Context. The resulting value may differ per 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)