Xbasic

CShortTime Function

Syntax

Short_Time_Equivalent as C = cshorttime(Y shorttime )

Arguments

shorttimeShortime

A short time value. For example: 09:27:16 91 am

Description

The CShortTime() function converts a short time value into a character value (string) that can be used in a sort expression. Format is 0h0m0s3.

Discussion

Returns a character string representation of a short time value that can be sorted. The format is hhmmssP.

Example

dim st as Y
st = now()
? st
= 09:38:35 80 am

? cshorttime(st)
= "093835803"

See Also