invoke

operator fun invoke(useWeek: Boolean = false, useDateLong: Boolean? = null, useTimeLong: Boolean? = null): DateTimeEntityFormatting(source)

Creates a Telegram-compatible non-relative format in weekday-date-time key order.

Return

A value matching w?[dD]?[tT]?; all unset parameters produce an empty format.

Parameters

useWeek

true adds WEEK_CONTROL_KEY; false leaves the weekday unset.

useDateLong

true adds DATE_LONG_CONTROL_KEY, false adds DATE_SHORT_CONTROL_KEY, and null leaves the date unset.

useTimeLong

true adds TIME_LONG_CONTROL_KEY, false adds TIME_SHORT_CONTROL_KEY, and null leaves the time unset.