Click or drag to resize

GetTimeSep Function

X#
Return the current separation character used in time strings.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION GetTimeSep() AS DWORD
Request Example View Source

Return Value

Type: DWord
The ASCII value of the current time separator (the character being used to separate hours, minutes and seconds in time strings). Since the default time separator is a colon (:), GetTimeSep() returns 58 by default. Note that you can use the Chr() function to convert this return value to a character.
Remarks
Examples
This example uses GetTimeSep() to display the current time separator:
X#
1? TIME()                // 08:31:53
2? GetTimeSep()            // 58
3? CHR(GetTimeSep())        // :
4SetTimeSep(ASC("*"))        // Set time separator to *
5? TIME()                // 08*31*56
6? GetTimeSep()            // 42
7? CHR(GetTimeSep())        // *
See Also