DateTimeFormat

interface DateTimeFormat<T>(source)

A format for parsing and formatting date-time-related values.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun format(value: T): String

Formats the given value into a string, using this format.

Link copied to clipboard

Uses this format to format an unstructured DateTimeComponents.

Link copied to clipboard
abstract fun <A : Appendable> formatTo(appendable: A, value: T): A

Formats the given value into the given appendable using this format.

Link copied to clipboard
abstract fun parse(input: CharSequence): T

Parses the given input string as T using this format.

Link copied to clipboard
abstract fun parseOrNull(input: CharSequence): T?

Parses the given input string as T using this format.