InstantStringResolver

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

A StringResolver 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
fun InstantStringResolver(instant: Instant, formatStyle: FormatStyle)
Link copied to clipboard
fun InstantStringResolver(instant: Instant, formatStyle: FormatStyle)

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)