Join Wintertainment 2021 to share your stories, have fun, earn community badges, and more!

Utilities.TimeSeparator Property

Applies to TestComplete 15.10, last modified on December 07, 2021
This property is obsolete. See the Remarks section below.


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



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.


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);


time_separator = aqEnvironment.GetLocaleInfo(LOCALE_USER_DEFAULT, LOCALE_STIME)


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


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

C++Script, C#Script

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

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