Date

@Serializable
sealed interface Date : DateTimeFormatPart(source)

Group for date-related format parts

Inheritors

Types

Link copied to clipboard
@Serializable
data object Long : DateTimeFormatPart.Date

Represents long date format (e.g. "January 1, 2023"). Control character: "D"

Link copied to clipboard
@Serializable
data object Short : DateTimeFormatPart.Date

Represents short date format (e.g. "01.01.2023"). Control character: "d"

Properties

Link copied to clipboard
abstract val controlCharacter: String

Character that represents this part in the format string. Used by TgDateTimeFormatBuilder.build