[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Specifies the time format used to generate the display Text for the time edit control.
Source position: editbtn.pas line 809
published property TTimeEdit.TimeFormat : string |
TimeFormat is a String property which contains FormatDateTime-compatible specifiers used to generate the Text displayed on the time edit control. It can be used to override the default time format settings for a given platform. TimeFormat is used in the UsedTimeFormat method called when a new value is assigned to the Time property.
TimeFormat can contain only format specifiers accepted by FormatDateTime(), except for those which apply to date or interval parts. The following symbols are interpreted in a specific way:
Any other characters can be inserted without quoting unless they collide with those specified above.
Changing the value in TimeFormat causes the new property value to be validated and either accepted or rejected using the ValidTimeFormat method. When accepted, the Text property is updated using the new format settings.
Use TimeSeparator to specify the separator character used to delimit time parts in the format settings.
Use TimeAMString and TimePMString to override the DefaultFormatSettings suffixes used for 12-hour time format.
Added in LCL version 4.0.
|
Contains the formatted text used to represent the Time value for the control. |
|
|
Represents the time value in the control. |
|
|
Specifies the separator character used to delimit time parts in the format settings applied to the control. |
|
|
Specifies the value displayed for a 12-hour time value prior to midday (Noon). |
|
|
Specifies the value displayed for a 12-hour time value after midday (Noon). |
|
|
Indicates whether the specified value is a valid time format for the TTimeEdit control. |
|
Version 4.0 | Generated 2025-05-03 | Home |