Click or drag to resize

GetTimeSep Function

Return the current separation character used in time strings.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.2a
Syntax
 FUNCTION GetTimeSep() AS DWORD
View Source

Return Value

Type: UInt32
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#
? TIME()                                // 08:31:53
? GetTimeSep()                        // 58
? CHR(GetTimeSep())                // :
SetTimeSep(ASC("*"))                // Set time separator to *
? TIME()                                // 08*31*56
? GetTimeSep()                        // 42
? CHR(GetTimeSep())                // *
See Also