TgDateTimeFormatBuilder

Builder for DateTimeEntityFormatting. Use buildDateTimeFormat for convenience. DateTimeFormatPart.Relative is mutually exclusive with all component parts. Component output uses Telegram's required week-date-time order regardless of the order of builder calls.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Builds a safe DateTimeEntityFormatting value in Telegram's required canonical order.

Link copied to clipboard

Selects DateTimeFormatPart.Relative and removes all component parts.