InstantStringResolver

data class InstantStringResolver(instant: Instant, formatStyle: FormatStyle) : StableStringResolver

A StableStringResolver that takes an Instant date time value and resolves that to the String representation using the specified FormatStyle in the default time zone for the given Context.

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
constructor(instant: Instant, formatStyle: FormatStyle)
constructor(instant: Instant, formatStyle: FormatStyle)

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)