AmPmIndicatorStringResolver

data class AmPmIndicatorStringResolver(instantMilliseconds: Long) : StableStringResolver

A StableStringResolver that takes a date time value in milliseconds and resolves that to the String representation of an AM or PM indicator.

The indicator is determined by the Context's 24 hour format preference. When a 24 hour format should be used, an empty string is returned.

Constructors

Link copied to clipboard
constructor(instantMilliseconds: Long)

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)