Utilities.TimeSeparator Property

Applies to TestComplete 15.70, last modified on December 17, 2024
This property is obsolete. See the Remarks section below.

Description

Use the Utilities.TimeSeparator property to specify the character that is used to separate hours, minutes and seconds in a time value.

Declaration

Utilities.TimeSeparator

Read-Only Property String

Applies To

The property is applied to the following object:

Property Value

The string that holds the character used to separate hours, minutes and seconds in a time value.

By default, TimeSeparator holds the value that is specified by Regional Settings in the Windows Control Panel. To restore this value, call the GetFormatSettings method.

Remarks

Utilities.TimeSeparate is obsolete and is supported for backward compatibility only. To get or set the time separator character, use the aqEnvironment.GetLocaleInfo and aqEnvironment.SetLocaleInfo functions with LOCALE_STIME as the second parameter. Keep in mind that custom locales might not have a uniform time separator character, so this constant is deprecated.

JavaScript, JScript

var time_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME);
Log.Message(time_separator);

Python

time_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME)
Log.Message(time_separator)

VBScript

time_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME)
Log.Message time_separator

DelphiScript

time_separator := aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME);
Log.Message(time_separator);

C++Script, C#Script

var time_separator = aqEnvironment["GetLocaleInfo"](LOCALE_USER_DEFAULT, LOCALE_STIME);
Log["Message"](time_separator);

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

See Also

Working With Time
Date and Time Format Specifiers
Today Method
Now Method
DateTimeToStr Method

Highlight search results