Tg Date Time Format Builder
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.
Functions
Builds a safe DateTimeEntityFormatting value in Telegram's required canonical order.
Adds DateTimeFormatPart.Date.Long and removes DateTimeFormatPart.Relative plus any other DateTimeFormatPart.Date part.
Adds DateTimeFormatPart.Date.Short and removes DateTimeFormatPart.Relative plus any other DateTimeFormatPart.Date part.
Selects DateTimeFormatPart.Relative and removes all component parts.
Adds DateTimeFormatPart.Time.Long and removes DateTimeFormatPart.Relative plus any other DateTimeFormatPart.Time part.
Adds DateTimeFormatPart.Time.Short and removes DateTimeFormatPart.Relative plus any other DateTimeFormatPart.Time part.
Adds DateTimeFormatPart.WeekDay and removes DateTimeFormatPart.Relative.