Time Property

Applies to TestComplete 14.60, last modified on April 22, 2021

Specifies the component’s time value.

Declaration

componentObj.Time
Read-Write Property TDateTime
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TcxTimeEdit

Description

Use the Time property to get or set the time value in the decimal form. This property returns a TDateTime value whose fractional part is a fraction of a 24 hour day that has elapsed. For example:

Time Value Meaning
0.0 00:00 (12:00 AM) - Midnight
0.125 03:00 (3:00 AM)
0.5 12:00 (12:00 PM) - Noon
0.770833333333333 18:30 (6:30 PM)
0.875 21:00 (9:00 PM)

The Time property is a wrapper for the EditValue property. The difference is that EditValue holds both the date and time portions of the component’s TDateTime value whereas Time lets you work with the time portion only. Note that when you set the value of the Time property, the date portion of the component’s value is preserved.

Property Value

A floating-point value whose fractional part specifies the elapsed time since midnight.

See Also

Working With Time
aqDateTime Object
EditValue Property
TimeFormat Property
ShowDate Property
TDateTime Type

Highlight search results