Package-level declarations

Types

Link copied to clipboard

The AM/PM marker that indicates whether the hour in range 1..12 is before or after noon.

Link copied to clipboard

A collection of datetime fields used specifically for parsing and formatting.

Link copied to clipboard
sealed interface DateTimeFormat<T>

A format for parsing and formatting datetime-related values.

Link copied to clipboard
sealed interface DateTimeFormatBuilder

Common functions for all format builders.

Link copied to clipboard
class DayOfWeekNames(val names: List<String>)

A description of how the names of weekdays are formatted.

Link copied to clipboard

Marks declarations in the datetime library that use format strings to define datetime formats.

Link copied to clipboard
class MonthNames(val names: List<String>)

A description of how month names are formatted.

Link copied to clipboard

The style of padding to use when formatting a value.

Functions

Link copied to clipboard
fun <T : DateTimeFormatBuilder> T.alternativeParsing(vararg alternativeFormats: T.() -> Unit, primaryFormat: T.() -> Unit)

A format along with other ways to parse the same portion of the value.

Link copied to clipboard

Appends a Unicode datetime format string to the DateTimeFormatBuilder.

Link copied to clipboard

A literal character.

Link copied to clipboard

Uses this format to format an unstructured DateTimeComponents.

Link copied to clipboard
fun <T : DateTimeFormatBuilder> T.optional(ifZero: String = "", format: T.() -> Unit)

An optional section.

Link copied to clipboard

Parses a DateTimeComponents from input using the given format. Equivalent to calling DateTimeFormat.parse on format with input.