HourMinuteStringResolver

data class HourMinuteStringResolver(instant: Instant) : StringResolver

A StringResolver that takes a date time value in milliseconds and resolves that to the String representation using the specified format HH:mm or h:m in the default time zone for the given Context.

This intentionally omits the AM/PM label from 12-hour formats, which can be visualized as a separate string using AmPmIndicatorStringResolver.

Note that an Instant is a lean representation of a unique point in time. It can be seen as a basic UTC time value.

Constructors

Link copied to clipboard
Link copied to clipboard
fun HourMinuteStringResolver(instant: Instant)

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)