Utilities.ShortTimeFormat Property

Applies to TestComplete 14.71, last modified on April 22, 2021
This property is obsolete. See the Remarks section below.

Description

Use the Utilities.ShortTimeFormat property to specify the format string that is used to convert time values to a string that contains only hours and minutes. For more information about format specifiers, see Date and Time Format Specifiers.

Declaration

Utilities.ShortTimeFormat

Read-Write Property String

Applies To

The property is applied to the following object:

Property Value

The string used to convert time values to a string that contains only hours and minutes.

Remarks

Utilities.ShortTimeFormat is obsolete and is supported for backward compatibility only. To get or set the short time format, use the aqEnvironment.GetLocaleInfo and aqEnvironment.SetLocaleInfo functions with LOCALE_SSHORTTIME as the second parameter.

JavaScript, JScript

var short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);
Log.Message(short_time_format);

Python

short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME)
Log.Message(short_time_format)

VBScript

short_time_format = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME)
Log.Message short_time_format

DelphiScript

short_time_format := aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);
Log.Message(short_time_format);

C++Script, C#Script

var short_time_format = aqEnvironment["GetLocaleInfo"](LOCALE_USER_DEFAULT, LOCALE_SSHORTTIME);
Log["Message"](short_time_format);

Or, if you want to format time values using locale settings, use the methods of the aqDateTime object. They use locale-specific time separators when parsing values.

See Also

Working With Time
Date and Time Format Specifiers
Today Method
Now Method
Time Method
DateTimeToStr Method
StrToDateTime Method
StrToTime Method
StrToDate Method

Highlight search results