Xbasic
CTIME Function
Syntax
Time_Equivalent as C = CTIME(timeval as t )
Arguments
- Time_Equivalent
A character string representation of a time value that can be sorted. The format is YYYMMDDhhmmssP
- timeval
A time value. For example: 02/15/2006 09:27:16 91 am
Description
The CTIME() function converts a time value into a character value (string) that can be used in a sort expression. Format is YYYYMMDD0h0m0s3.
Discussion
Example
? ctime(now() ) = "20060215092839365" dim tt as T dim na as C = "Fred" tt = now() ? tt = 02/15/2006 09:27:16 91 am ? na + ctime(tt) = "Fred20060215092716912"
See Also