[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'EditBtn' (#lcl)

# TTimeEdit.UsedTimePMString

Gets the suffix used for a post meridiem (after midday) time value in the control.

## Declaration

Source position: editbtn.pas line 755

`protected function TTimeEdit.UsedTimePMString: string;`

## Function result

Suffix used for a post meridiem (after midday) time value when 12-hour clock values are used in time TimeFormat.

## Description

UsedTimePMString is a String function which returns the suffix used for a post meridiem time value when the UsedTimeFormat for the control displays 12-hour clock values. UsedTimeAMString examines the lowercase value returned from UsedTimeFormat to determine whether the value 'ampm' is used in the effective TimeFormat for the control.

If UsedTimeFormat contains 'ampm', the return value is set to the effective display suffix for a Time which occurs before midday / noon. This is the value from DefaultFormatSettings.TimePMString when TimePMString is empty, or the TimePMString property value when assigned. The default value in the DEFAULT_TIMEPMSTRING constant is used when the return value is unassigned (an empty string).

UsedTimePMString, along with UsedTimeAMString and UsedTimeFormat, are used when a popup is displayed for the Time value in the control.

See UsedTimeAMString for the effective value used for a ante meridiem (after midday) time value when a 12-hour clock is used.

## See also

TTimeEdit.TimeFormat |  | Specifies the time format used to generate the display Text for the time edit control.
TTimeEdit.UsedTimeFormat |  | Gets the effective short time format used for the Time value in the control.
TTimeEdit.UsedTimeAMString |  | Gets the suffix used for an ante meridiem (before midday) time value in the control.
DefaultFormatSettings